dbTalk Databases Forums  

DTS and Temp Table

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


Discuss DTS and Temp Table in the microsoft.public.sqlserver.dts forum.



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

Default DTS and Temp Table - 04-02-2004 , 05:43 PM






Hi,

I am have a problem using a temp table in a stored procedure which is called
from DTS. Within the Transform Data Task Properties dialog the
Transformations for the Source does not display any fields. I know the
problem is caused by the temp table, what I want to know is there any work
around.

Thanks!



Reply With Quote
  #2  
Old   
Darren Green
 
Posts: n/a

Default Re: DTS and Temp Table - 04-04-2004 , 12:23 PM






In message <OB2auPQGEHA.1228 (AT) TK2MSFTNGP11 (DOT) phx.gbl>, Kevin Potter
<temp (AT) temp (DOT) com> writes
Quote:
Hi,

I am have a problem using a temp table in a stored procedure which is called
from DTS. Within the Transform Data Task Properties dialog the
Transformations for the Source does not display any fields. I know the
problem is caused by the temp table, what I want to know is there any work
around.

Thanks!

Temp tables will work at run-time, but unfortunately it is virtually
impossible to use them in the designer. There are two options to get
round this-

Change the proc to use a permanent table. Then change it back once
design is complete.

Change the source to something fixed, for example a simple select from a
dummy table of the same structure that allows you to build the package.
Then once built use Disconnected Edit to change the SQL back to the
procedure.

Basically the Designer needs something it can work with to get the
required meta-data, but once you have finished designing you can change
back to the real code, and the run-time will work as we know it should.

Make sense?

--
Darren Green (SQL Server MVP)
DTS - http://www.sqldts.com

PASS - the definitive, global community for SQL Server professionals
http://www.sqlpass.org



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.