dbTalk Databases Forums  

Connection as parameter

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


Discuss Connection as parameter in the microsoft.public.sqlserver.dts forum.



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

Default Connection as parameter - 02-02-2006 , 03:56 AM






Suppose I have two identical databases, the first is the staging that
all development stuff gets reviewed before the roll up and the second
one that is the production.
Is it possible in SSIS to have an OLE DB Source Data Flow item that is
parameterized, so if I change the value of the parameter, all the Data
Flow Items will work on a different source database?


Reply With Quote
  #2  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: Connection as parameter - 02-02-2006 , 04:16 AM






Hello KelMan,

Yep

Look at the Connection Manager properties for the connection. Now look for
a property called Expressions.

In their you can set the properties of the Connection Manager to variables
(amongst other things). These are then evaluated and populated with whatever
value the variable contains at the time

Very similar to this

http://wiki.sqlis.com/default.aspx/S...cLocation.html



Allan

Quote:
Suppose I have two identical databases, the first is the staging that
all development stuff gets reviewed before the roll up and the second
one that is the production.
Is it possible in SSIS to have an OLE DB Source Data Flow item that is
parameterized, so if I change the value of the parameter, all the Data
Flow Items will work on a different source database?



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

Default Re: Connection as parameter - 02-03-2006 , 04:14 AM



Yes, found it... Thanx!


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.