Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

User access on Temp tables question

Status
Not open for further replies.

LucieLastic

Programmer
May 9, 2001
1,694
0
0
GB
hi

I'm in the process of writing a Stored Procedure which creates a couple of temporary tables. The data can be different for each user, so my question is, if 2 users run the same Stored Proc at the same time, will they both try to access the same temp table or will 2 separate instances of the temp table be created, each one being dedicated to individual user's session?

lou

 
You have both types of temporay tables
Tables created as "create table tempdb..t1" are shared anong all connections, and tables created as "create table #t1" has a different table for each connection.
 
hi dbiaz

I need the #t1 one. Thanks for that.

lou

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top