dbTalk Databases Forums  

trasformation task with source as stored procedure

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


Discuss trasformation task with source as stored procedure in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Dario Concilio [MCP]
 
Posts: n/a

Default trasformation task with source as stored procedure - 12-12-2005 , 07:48 AM






Hi Guy,

I need some information.
In my DTS I want to use a traformation task with a stored procedure as
source. This step is ok.

THEN...

This SP need, for a correct function, 2 parameters that I want to set it
with 2 DTS global variables.

In task trasformation source, I write " EXEC RunSql ?,? " when I try to view
some data, DTS show me that it not have a parameter.
I press parameter button and I set 2 param with my 2 global variables.

But when I retry to visualize the data, the DTS give me the same error,
besides it doesn't create the map of the fields.

PS:
I would like to compose as a string the table from which I retrieve the data
as source of trasformation.

What can I do? Thare are any way?

Thanks.



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

Default Re: trasformation task with source as stored procedure - 12-12-2005 , 12:56 PM






Dario Concilio [MCP] wrote:
Quote:
Hi Guy,

I need some information.
In my DTS I want to use a traformation task with a stored procedure as
source. This step is ok.

THEN...

This SP need, for a correct function, 2 parameters that I want to set it
with 2 DTS global variables.

In task trasformation source, I write " EXEC RunSql ?,? " when I try to view
some data, DTS show me that it not have a parameter.
I press parameter button and I set 2 param with my 2 global variables.

But when I retry to visualize the data, the DTS give me the same error,
besides it doesn't create the map of the fields.

PS:
I would like to compose as a string the table from which I retrieve the data
as source of trasformation.

What can I do? Thare are any way?

Thanks.


If you are using dynamic SQL inside the proc then it will probably choke
since it cannot determine the meta-data.

Use some SQL that gives the correct meta-data for setup, then change to
the real SQL afterwards. It should run fine, but design-time you have a
problem.



--
Darren
http://www.sqldts.com
http://www.sqlis.com


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.