Groups | Blog | Home
all groups > sql server mseq > december 2004 >

sql server mseq : #Temp table question


MichaelK
12/31/2004 4:12:06 PM
I'm not sure if I understood this correctly.
If I create a temporary table with the name #SomeTempTab,
can anybody else see this table while I'm using it and before I drop it.
So if two users at the same time trying to create the table with this name
will they be different for each user or there will be a conflict?

Thanks,
Michael

MichaelK
1/1/2005 10:40:35 PM
Thanks Hugo.
You were helpfull as well as with my another question.
It's what I was looking for.

Regards,
Michael

[quoted text, click to view]

Hugo Kornelis
1/1/2005 11:05:40 PM
[quoted text, click to view]

Hi Michael,

There will be no conflict. SQL Server will generate a connection-specific
suffix to create a really unique table name in tempdb. Everytime you refer
to #SomeTempTab, SQL Server will append the suffix and look in "your"
version of the temporary table.

Best, Hugo
--

AddThis Social Bookmark Button