dbTalk Databases Forums  

Script component in ssis with multiple inputs

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


Discuss Script component in ssis with multiple inputs in the microsoft.public.sqlserver.dts forum.



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

Default Script component in ssis with multiple inputs - 03-23-2006 , 03:59 PM






I'm using a script component in ssis to create some custom output columns
with vb.net. This is working great, and I've read that I can use mutiple
inputs to reuse the code with multiple data sources. However, when I create a
second source and try to drag a path to the script component, I get the
message that the component doesn't have any available inputs. When I edit the
transformation, I only see "Input 0" in the dropdown for input name. I can't
see any other way to create an additional input, and I'd hate to have to
include the vb.net code more than once in multiple script components in case
I have to change it. Does anyone know how to accomplish this?

Thanks in advance.

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

Default RE: Script component in ssis with multiple inputs - 03-24-2006 , 04:01 AM






"When used as a transformation, the Script component supports one input and
multiple outputs."

http://msdn2.microsoft.com/en-us/library/ms135927.aspx

Do you really require multiple inputs or do you just require reuse of the
logic within the component on a second path? Either way you should consider a
custom managed component, as this allows you to create multiple inputs,
and/or offers reuse within the same package or accross packages.

--
http://wiki.sqlis.com | http://www.sqlis.com | http://www.sqldts.com


"sqlboy2000" wrote:

Quote:
I'm using a script component in ssis to create some custom output columns
with vb.net. This is working great, and I've read that I can use mutiple
inputs to reuse the code with multiple data sources. However, when I create a
second source and try to drag a path to the script component, I get the
message that the component doesn't have any available inputs. When I edit the
transformation, I only see "Input 0" in the dropdown for input name. I can't
see any other way to create an additional input, and I'd hate to have to
include the vb.net code more than once in multiple script components in case
I have to change it. Does anyone know how to accomplish this?

Thanks in advance.

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

Default RE: Script component in ssis with multiple inputs - 03-24-2006 , 08:27 AM



Ahh, thanks for the info.


"Darren Green" wrote:

Quote:
"When used as a transformation, the Script component supports one input and
multiple outputs."

http://msdn2.microsoft.com/en-us/library/ms135927.aspx

Do you really require multiple inputs or do you just require reuse of the
logic within the component on a second path? Either way you should consider a
custom managed component, as this allows you to create multiple inputs,
and/or offers reuse within the same package or accross packages.

--
http://wiki.sqlis.com | http://www.sqlis.com | http://www.sqldts.com


"sqlboy2000" wrote:

I'm using a script component in ssis to create some custom output columns
with vb.net. This is working great, and I've read that I can use mutiple
inputs to reuse the code with multiple data sources. However, when I create a
second source and try to drag a path to the script component, I get the
message that the component doesn't have any available inputs. When I edit the
transformation, I only see "Input 0" in the dropdown for input name. I can't
see any other way to create an additional input, and I'd hate to have to
include the vb.net code more than once in multiple script components in case
I have to change it. Does anyone know how to accomplish this?

Thanks in advance.

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.