I am getting error when i run the following sql query:
Declare @tempTable varchar(50)
select @tempTable= '#' + @userName
DROP TABLE @tempTable
Error:
Server: Msg 170, Level 15, State 1, Line 3
Line 3: Incorrect syntax near '@tempTable'.
TIA
Thanks,
MB