dbTalk Databases Forums  

How to use Temp tables in DTS Package?

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


Discuss How to use Temp tables in DTS Package? in the microsoft.public.sqlserver.dts forum.



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

Default How to use Temp tables in DTS Package? - 03-20-2006 , 03:20 PM






Can you create a temp table in one Execute SQL Task and use it in the query
specified in another Execute SQL Task that is connected to a different
database?

Thanks, Dave.

Reply With Quote
  #2  
Old   
Sue Hoegemeier
 
Posts: n/a

Default Re: How to use Temp tables in DTS Package? - 03-20-2006 , 10:05 PM






Local temp tables won't persist across connections, separate
Execute SQL tasks. Global temp tables will work but they can
be a pain to work with. You may also want to consider using
a staging table - like a permanent work table - instead of a
temp table.

-Sue

On Mon, 20 Mar 2006 13:20:30 -0800, Dave
<Dave (AT) discussions (DOT) microsoft.com> wrote:

Quote:
Can you create a temp table in one Execute SQL Task and use it in the query
specified in another Execute SQL Task that is connected to a different
database?

Thanks, Dave.


Reply With Quote
  #3  
Old   
Dave
 
Posts: n/a

Default Re: How to use Temp tables in DTS Package? - 03-21-2006 , 09:07 AM



Sue, thanks you confirmed some things for me. I used a work table in the
past but wasn't sure if that was the best way to go. Dave.

"Sue Hoegemeier" wrote:

Quote:
Local temp tables won't persist across connections, separate
Execute SQL tasks. Global temp tables will work but they can
be a pain to work with. You may also want to consider using
a staging table - like a permanent work table - instead of a
temp table.

-Sue

On Mon, 20 Mar 2006 13:20:30 -0800, Dave
Dave (AT) discussions (DOT) microsoft.com> wrote:

Can you create a temp table in one Execute SQL Task and use it in the query
specified in another Execute SQL Task that is connected to a different
database?

Thanks, Dave.



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.