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