Recently i tried to create one temp table before dynamic sql and i compiled the SP.
when i tried to execute the SP it is giving the error like my temp table doen't exist
DECLARE @sqlstring NVARCHAR(4000)
select * into #test from xtable
SET @sqlstring='select * from #test'
now it is compiling fine but at the time of executing it is showing the error like
#test doesn't exist
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)