I need to create a dynamic sp in order to create temporal tables using the EXEcuted statement creating a string cmd:
exec @cmd = ('select * into from' + @tabname)
But I need to exclude some columns to not include into the new temp table. I already have a TableList in wich I specify the Exclude...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.