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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Global Temporary Tables in DTS

Status
Not open for further replies.

Modica82

Technical User
Jan 31, 2003
410
GB
Hi all, is it possible to create a Global Temporary table in a DTS, fill it wil information, use it for a transformation and then destroy it within one package?? If not, what are the alternatives?

Regards,

Rob
 
I'm not sure I understand what you mean by "Global Temporary " table ..??

But ... I create my all temp tables with a SQL Task at the beginning of the DTS. Then transfer the data, execute a Axtive X Script to call my stored proc, then drop the table at the end with a SQL Task.


I was standing in the park, wondering why frisbees got bigger as they came closer... then it hit me!
 
You can always create ##temp or #temp tables using a Execute SQL Task.

#temp are local temp tables and are only available during the session.

##temp tables are global temp tables and are available to all users and connections

My suggestion is put a Execute SQL Task at the beginning of your DTS that creates the table. Then at the end once you are done add another Execute SQL Task that drops the table.

Jon
 
Hi all,

i have created a 'permanent/temporary' table in temp DB, as according to books online this is a better approach then creating a tempory table. It seems to work, and i am glad that my way of thinking is the same as yours :).

Thanks for your help!

Rob
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top