|
|
|
Hall of Fame
       
Group: General Forum Members
Last Login: Thursday, May 09, 2013 8:31 AM
Points: 3,367,
Visits: 1,563
|
|
|
|
|
|
Say Hey Kid
      
Group: General Forum Members
Last Login: Wednesday, November 28, 2012 8:34 AM
Points: 672,
Visits: 186
|
|
I realze option 4 is correct if you use the DTS object model to execute the task, but I use package configurations all the time to change connection values at run time.
Why is option 3 not also a correct answer here?
"Yes - In SSIS connections can be dynamically updated during execution using package configurations."
|
|
|
|
|
SSCarpal Tunnel
       
Group: General Forum Members
Last Login: 2 days ago @ 2:51 PM
Points: 4,003,
Visits: 1,485
|
|
I'm wondering the same thing as Gordon. As is often the case, it seems that there are multiple ways of accomplishing the goal.
Quote from SQL Server 2005 Books Online: Connection Manager How-to Topics (SSIS)
The properties of connection managers such as the connection string must frequently be updated at run time. To learn more about dynamically updating properties, see Package Configurations and Using Property Expressions in Packages.
|
|
|
|
|
SSC-Addicted
      
Group: General Forum Members
Last Login: Monday, January 14, 2013 10:34 PM
Points: 428,
Visits: 334
|
|
| I would have to agree that No. 3 is correct also.
|
|
|
|
|
Hall of Fame
       
Group: General Forum Members
Last Login: Thursday, May 09, 2013 8:31 AM
Points: 3,367,
Visits: 1,563
|
|
Gordon Radley (1/28/2008) I realze option 4 is correct if you use the DTS object model to execute the task, but I use package configurations all the time to change connection values at run time.
Why is option 3 not also a correct answer here?
"Yes - In SSIS connections can be dynamically updated during execution using package configurations."
The question wasn't can you change them at run time .. which is what the package configurations are for .. but during execution. Ie can you use the same connection to hit multiple servers during the same execution of the package.
I could certainly be wrong but my understanding of package configurations is that they only happen when you initially run the package.
Kenneth Fisher I strive to live in a world where a chicken can cross the road without being questioned about its motives. -------------------------------------------------------------------------------- For better, quicker answers on T-SQL questions, click on the following... http://www.sqlservercentral.com/articles/Best+Practices/61537/ For better answers on performance questions, click on the following... http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
Link to my Blog Post --> www.SQLStudies.com
|
|
|
|
|
SSC-Addicted
      
Group: General Forum Members
Last Login: Tuesday, May 31, 2011 2:32 PM
Points: 491,
Visits: 221
|
|
|
|
|
|
Hall of Fame
       
Group: General Forum Members
Last Login: Thursday, May 09, 2013 8:31 AM
Points: 3,367,
Visits: 1,563
|
|
Also just to point it out, part of what I was trying to get at was that you could create a loop in your package to run through a list of servers, files, etc and inside the loop put a script object that changes your connection string. Then create any other object that uses that connection.
I've used it to run the same script on a series of servers and to import data from a series of similar files. In one instance I used it it to let me test a connection where I had just changed the password to a random string.
Kenneth Fisher I strive to live in a world where a chicken can cross the road without being questioned about its motives. -------------------------------------------------------------------------------- For better, quicker answers on T-SQL questions, click on the following... http://www.sqlservercentral.com/articles/Best+Practices/61537/ For better answers on performance questions, click on the following... http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
Link to my Blog Post --> www.SQLStudies.com
|
|
|
|
|
Say Hey Kid
      
Group: General Forum Members
Last Login: Wednesday, November 28, 2012 8:34 AM
Points: 672,
Visits: 186
|
|
Fair Enough!!
Obviously my interpretation of the question was a bit off..
Thank you!
|
|
|
|
|
Say Hey Kid
      
Group: General Forum Members
Last Login: Friday, May 03, 2013 11:50 AM
Points: 712,
Visits: 410
|
|
Gordon Radley (1/28/2008) Fair Enough!!
Obviously my interpretation of the question was a bit off..
Thank you!
Gordon,
Based on the most popular "incorrect" answer, I'd say it was more than just you interpreting the question a different way. If the question author meant "multiple servers connecting to the same OLEDB connection once the package has started", it should have been worded so. Otherwise, package configurations are the natural way to change OLEDB connections at runtime.
Vince
|
|
|
|
|
Hall of Fame
       
Group: General Forum Members
Last Login: Thursday, May 09, 2013 8:31 AM
Points: 3,367,
Visits: 1,563
|
|
viacoboni (1/28/2008)
Gordon Radley (1/28/2008) Fair Enough!!
Obviously my interpretation of the question was a bit off..
Thank you!Gordon, Based on the most popular "incorrect" answer, I'd say it was more than just you interpreting the question a different way. If the question author meant "multiple servers connecting to the same OLEDB connection once the package has started", it should have been worded so. Otherwise, package configurations are the natural way to change OLEDB connections at runtime. Vince
Vince,
You are absolutly correct. Package Configurations are the natural way to change OLEDB connections at runtime. However the question was
In SQL 2005 Integration Services can an OLE DB connection be dynamicaly changed during execution.
I appologize if it was confusing. I did my best to word it clearly without giving away the answer completly.
I spent quite a bit of time making sure I had the definition of "Run Time" vs "Execution Time" correct.
Kenneth
Kenneth Fisher I strive to live in a world where a chicken can cross the road without being questioned about its motives. -------------------------------------------------------------------------------- For better, quicker answers on T-SQL questions, click on the following... http://www.sqlservercentral.com/articles/Best+Practices/61537/ For better answers on performance questions, click on the following... http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
Link to my Blog Post --> www.SQLStudies.com
|
|
|
|