dbTalk Databases Forums  

create table in package

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss create table in package in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Fred
 
Posts: n/a

Default create table in package - 05-08-2004 , 03:01 PM






Hi
I need to create a table and use it in a package. However, this package may be called simultaneously by several users. Can anyone tell me the standard way of doing this? I have played around with temporary tables but separate execute sql steps don't seem to recognise them. Can I use global temp tables? Are they global only in the scope of the package
TIA
Fred

Reply With Quote
  #2  
Old   
The Margolins
 
Posts: n/a

Default Re: create table in package - 05-08-2004 , 07:20 PM






Fred,

Global temp tables are available from any connection including the next
package. You can get around this if you make table name unique per package
session. This also means you will have to supply the real table name to all
depending tasks at run time. Kludgy, but works.

Another approach is to use the same table for all package sessions, but with
an additional session identifier column. This one may be easier in design.

Ilya
"Fred" <anonymous (AT) discussions (DOT) microsoft.com> wrote

Quote:
Hi,
I need to create a table and use it in a package. However, this package
may be called simultaneously by several users. Can anyone tell me the
standard way of doing this? I have played around with temporary tables but
separate execute sql steps don't seem to recognise them. Can I use global
temp tables? Are they global only in the scope of the package?
Quote:
TIA,
Fred



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.