stevenk140
Programmer
How come this will not work?
DECLARE @TableName VARCHAR(40)
SET @TableName = 'analog'
SELECT * FROM @TableName
Server: Msg 137, Level 15, State 2, Line 5
Must declare the variable '@TableName'.
How could I get around this?
DECLARE @TableName VARCHAR(40)
SET @TableName = 'analog'
SELECT * FROM @TableName
Server: Msg 137, Level 15, State 2, Line 5
Must declare the variable '@TableName'.
How could I get around this?