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
  • 36,867
  • 50
  • 163
  • 268
Daniel Frost
  • 298
  • 1
  • 10

0 Answers0