September 2, 2011 at 1:48 pm
I have created a ssis pacakge that has a data flow task.
Now I would like to copy this to another packages that has many other data flows.
Can I just copy it and paste to the target pacakges?
September 2, 2011 at 1:59 pm
Short answer, "yes with a but"
You can copy any task from a package to another package. The problem comes when that task is using variables or connections that exist in one package but don't exist in the other.
For example, let's say you had a data flow task which had an OLE DB source and an OLE DB destination, which used connection managers to handle the connection to the database.
When you copy the data flow task to a new package, the connection manager ID needs to be the same. If they are, then it will work. If they aren't, then you'll get an error saying something along the lines of "connection manager with ID #### was not found".
That's not really a problem - all you need to do is open the OLE DB source, and change the connection manager to point to whatever connection manager exists in your new package. Same with the OLE DB destination.
Likewise, if you are using variables that exist in one package but not in the other, you'll just need to create those variables in the new package.
September 3, 2011 at 4:33 am
Just an FYI, Microsoft announced last week that they are aligning themselves with ODBC.
OLE DB is being deprecated and Denali will be the last version in which OLE DB is supported.
Microsoft is encouraging adopting ODBC in any future development.
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/
September 5, 2011 at 12:53 pm
Thanks.
My new and exiting package all have the same connections with the same name.
But maybe the ID are different, does it matter?
I read the article http://denglishbi.wordpress.com/2011/03/25/ssis-package-copypaste-new-guid-id-fix/
It seems it gets more complicated about both pacakge ID and objects ID in it.
And I'm not using SQL server 2008 R2, so this makes me thinking copy and paste could cause problems, but recreate consumes more time.
THanks
September 6, 2011 at 6:03 am
I regularly copy-paste objects from SSIS projects, and haven't had any problems with it. Best way is to just test it and see what happens.
September 6, 2011 at 10:06 am
Thanks, good to know, and feel better now to copy and paste tasks.
September 6, 2011 at 10:34 am
sorry - just re-read your previous post and noticed the comment regarding SQL Server 2008 R2.
Are you trying to copy a data flow task from SSIS 2005 to SSIS 2008? If so, I can't guarantee that will work, since I've never tried to do that. My post was specifically directed towards copying objects from two different SSIS projects.
September 6, 2011 at 10:46 am
I'm copying and paste data flow in different package but on the same version of sql server 2008
Viewing 8 posts - 1 through 8 (of 8 total)
You must be logged in to reply to this topic. Login to reply
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy