Forum Discussion
sdoscher
4 years agoNew Contributor III
I cannot get this dynamic SQL query to work.
DECLARE @sql AS varchar(max)
SET @sql = ’
select top 10 * from db1.dbo.hc_table
’
EXEC (@sql)
It runs fine in SSMS, but not Snaplogic.
Is there special syntax that I need to use in Execute Snap?