if i run the following query
declare @sql varchar(7000)
set @sql = 'select * into #mytemp from <Your Table Name> '
exec (@sql)
SELECT * FROM #mytemp
DROP TABLE #mytemp
getting
Server: Msg 208, Level 16, State 1, Line 6
Invalid object name '#mytemp'.
Please help me.
Thanks in advance.