0

I am trying to insert data into a table based on a variable, but SQL Server is not recognising the table in the variable.

INSERT INTO @tableNameH
SELECT * FROM @tableName; 

It this not supported in T-SQL?

Uwe Keim
  • 38,279
  • 56
  • 171
  • 280
Daniel Frost
  • 358
  • 1
  • 13

0 Answers0