I am dynamically creating tables in stored procedures, and would like to use variables for the table identifiers. Something like:
CREATE TABLE @TableName (
-- ...
But I always get a syntax error "near '@TableName'". I am currently concatenating an entire SQL string and running it...
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.