Welcome to dbFreaks.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Temp Table's

 
   Database Help (Home) -> Programming RSS
Next:  Q: Tip on database design and a "simple&quot..  
Author Message
Skip

External


Since: Aug 22, 2006
Posts: 14



(Msg. 1) Posted: Tue Oct 17, 2006 12:56 pm
Post subject: Temp Table's
Archived from groups: microsoft>public>sqlserver>programming (more info?)

Hello All,
I use several local temp tables in an application. These tables store
information that is built from some text files by the user. This data
cannot be mixed up by another user logging in at the same time. Is
there a chance that another user can run the app at the same time as
another thus mixing up data? Or is there a new unique temp table
created by the new user? Can someone please explain.

Thanks

 >> Stay informed about: Temp Table's 
Back to top
Login to vote
Tracy McKibben

External


Since: Mar 06, 2007
Posts: 52



(Msg. 2) Posted: Tue Oct 17, 2006 12:58 pm
Post subject: Re: Temp Table's [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Skip wrote:
> Hello All,
> I use several local temp tables in an application. These tables store
> information that is built from some text files by the user. This data
> cannot be mixed up by another user logging in at the same time. Is
> there a chance that another user can run the app at the same time as
> another thus mixing up data? Or is there a new unique temp table
> created by the new user? Can someone please explain.
>
> Thanks

That depends on how you create the temp tables:

#temp is only accessible within the session that created it

##temp is global and accessible by any session

 >> Stay informed about: Temp Table's 
Back to top
Login to vote
Skip

External


Since: Aug 22, 2006
Posts: 14



(Msg. 3) Posted: Tue Oct 17, 2006 1:07 pm
Post subject: Re: Temp Table's [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Tracy McKibben wrote:
> Skip wrote:
> > Hello All,
> > I use several local temp tables in an application. These tables store
> > information that is built from some text files by the user. This data
> > cannot be mixed up by another user logging in at the same time. Is
> > there a chance that another user can run the app at the same time as
> > another thus mixing up data? Or is there a new unique temp table
> > created by the new user? Can someone please explain.
> >
> > Thanks
>
> That depends on how you create the temp tables:
>
> #temp is only accessible within the session that created it
>
> ##temp is global and accessible by any session

Tracy,
They are #temp
 >> Stay informed about: Temp Table's 
Back to top
Login to vote
Aaron Bertrand [SQL Serve

External


Since: Jan 10, 2008
Posts: 2166



(Msg. 4) Posted: Tue Oct 17, 2006 4:07 pm
Post subject: Re: Temp Table's [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

#temp table is session specific, so each user will have their own.



"Skip" wrote in message

> Hello All,
> I use several local temp tables in an application. These tables store
> information that is built from some text files by the user. This data
> cannot be mixed up by another user logging in at the same time. Is
> there a chance that another user can run the app at the same time as
> another thus mixing up data? Or is there a new unique temp table
> created by the new user? Can someone please explain.
>
> Thanks
>
 >> Stay informed about: Temp Table's 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
inserting efficiently into a temp table/table variable - I am a newbie to Sql Server programming, and I was hoping that someone might be able to point me in the proper direction. I am trying to write a C function that takes an array of strings and insert them into either a temporary table or a table variable....

Table variable performance vs. temp table - Hi, I've got an identical query, one with temp tables and one with table variables that results in two completely different execution times. The plans look virtually the same but execution time is around 2 minutes with the variables and less than a..

Temp Table - I have created a temp table using the following query: CREATE TABLE #temptbl1 (Col1 varchar(50), Col2 int) When I run the following query: USE tempdb IF EXISTS (SELECT * FROM sysobjects WHERE NAME = '#temptbl1') PRINT 'TABLE EXISTS' ELSE PRINT 'TABL...

existence of temp table - How do you check for the existence of a temp table before removing it with drop? thanks!

How to loop a temp table? - I have a statement in my stored procedure that has the following as an example - INSERT #TempTableOutput EXEC (@select + @from + @where + @order) How could I then loop through the records of #TempTableOutput to update some blank fields that were..
   Database Help (Home) -> Programming All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]