Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2012 Forums
 SSIS and Import/Export (2012)
 Change database in siss package

Author  Topic 

djamit
Starting Member

17 Posts

Posted - 2013-09-30 : 08:05:15
Hi,

I have a database Z running with siss packages that import data from database X. A copy of database X is now running as database Y.
How can I change the siss packages to import data from database Y?

Thanks,

Kind regards,

James K
Master Smack Fu Yak Hacker

3873 Posts

Posted - 2013-09-30 : 08:40:19
If the connection strings are in the configuration, you should be able to change the connection strings in the configuration. If it is not, you will need to edit the SSIS package using BIDS. Here is some info on where to look for the configuration: http://msdn.microsoft.com/en-us/library/cc671628.aspx
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2013-09-30 : 10:13:02
you just need to add a config file if not already present and identify connection string as a configurable item inside it. Then depending on whether you chose to store config as a file or inside table you can edit the file or run an update query on the table to change dtabase information to make it point to new database.
You can also set this property from within sql server agent job step properties.

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/
https://www.facebook.com/VmBlogs
Go to Top of Page
   

- Advertisement -