Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

when I use debugger in sql server 2008 R2 Developer -- it deletes/removes my existing #temp tables ?? any workarounds?

$
0
0

First I create #tmpTbls  (Sql Server 2008 R2 Developer)

create table #tmpTbls(tblName varchar(100))

I get this message:
    Command(s) completed successfully.


Then I add a breakpoint to the "declare ..." line here

------------------------------------------------
declare @t1 varchar(100), @c1 varchar(100), @i int


set @t1 = 'xx'
set @i = 1
------------------------------------------------

then I step through these 3 statements with F11 (only these 3 statements)

When I try to run the following statement immediately afterwards

select * from #tmpTbls

I get this message:

   Invalid object name '#tmpTbls'.


Does the debugger mode remove #temp  tables?  Is there a way to get around this?  How to get around this?

Thanks


Rich P


Viewing all articles
Browse latest Browse all 23857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>