Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
Kulwinder
Starting Member
18 Posts |
Posted - 2005-02-04 : 11:00:14
|
| CREATE PROCEDURE GetResponseTableasBEGINDECLARE @strQuery nvarchar(3000)set @strQuery = 'CREATE TABLE #tmpResponse(ResponseID bigint)'exec sp_executesql @strQueryset @strQuery = N'INSERT INTO #tmpResponse values(12)'exec sp_executesql @strQuery END |
|
|
spirit1
Cybernetic Yak Master
11752 Posts |
Posted - 2005-02-04 : 11:11:29
|
i guess your problem is you can't do select * from #tmpResponsethat's because #temp table is local to the batch.if you wan't it to work over muiltiple batches use a global ##temp table: ##tmpResponseGo with the flow & have fun! Else fight the flow |
 |
|
|
|
|
|