Viewing post 1 (of 1 total)
Looks like just a few syntax issues. Try these changes...
--Check for Object existenceIF (object_id('''+@DB_NAME+'.dbo.revenue_type'') is not null)BEGIN
INSERT INTO @IDTABLEselect distinct...
February 7, 2017 at 10:33 am
#1927148