all groups > sql server programming > january 2006 >
You're in the

sql server programming

group:

create a temporary table


create a temporary table Frank Dulk
1/11/2006 9:45:05 PM
sql server programming:
How to create a temporary table where the name of the table is the user's
ID.

#@IDUsuario

Re: create a temporary table Andrew J. Kelly
1/11/2006 11:09:57 PM
You can't unless you use dynamic sql but then the table only lasts as long
as the dynamic sql scope. If every table will be unique to that user why not
create a real table instead?

--
Andrew J. Kelly SQL MVP


[quoted text, click to view]

Re: create a temporary table Tibor Karaszi
1/12/2006 5:31:34 PM
Why would you want to do that? Temp tables internal names are unique, so you don't have to worry
about duplicates, and one session cannot see another sessions temptable anyhow.

--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
Blog: http://solidqualitylearning.com/blogs/tibor/


[quoted text, click to view]
AddThis Social Bookmark Button