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.

 All Forums
 SQL Server 2008 Forums
 Transact-SQL (2008)
 SQL SERVER global temp table problem

Author  Topic 

nakhan
Starting Member

2 Posts

Posted - 2010-05-13 : 07:20:52


Hi

question1 : I am using global temp tables in sql server 2008

but once my connection is closed this temp is dropped

is there any way to disable auto drop

Question2 : If two connections are accessing same global temp table and another connection is trying to delete that global temp table,does sql server handles this synchronization properly

from nayeem khan

webfred
Master Smack Fu Yak Hacker

8781 Posts

Posted - 2010-05-13 : 07:35:48
answer1:
That is the normal behaviour and it is right.
You don't want to have a messy server with orphaned temp tables...

answer2:
Try it out using two query windows...


No, you're never too old to Yak'n'Roll if you're too young to die.
Go to Top of Page
   

- Advertisement -