Groups | Blog | Home
all groups > sql server dts > january 2007 >

sql server dts : Calling a SQL Server 2005 SSIS Package Using xp_cmdshell and DTSRUN



jimdefruscio NO[at]SPAM yahoo.com
1/9/2007 12:00:46 PM
Is there a way to use xp_cmdshell (or any other method) to execute an
SSIS package residing on a SQL Server 2005 from a stored procedure on a
SQL Server 2000 database?

I used to have a procedure that used a COPY SQL Server Objects tasks to
copy data from tables from a source (SQL Server 2000) database to a
destination (SQL Server 2000) database. This DTS package was called
programmatically in a stored procedure using xp_cmdshell and DTSRUN.
Recently the destination server has been upgraded from SQL Server 2000
to 2005 and I can not get the DTS to connect to SQL Server 2005. So, I
built an SSIS package that will do the task, but I can not figure out a
way to call the package in a similar way.

Any help would be appreciated!
David Browne
1/9/2007 2:35:17 PM


[quoted text, click to view]

Create a SQL Server Agent Job to run the package and kick it off with
sp_startjob,

David
Allan Mitchell
1/9/2007 8:50:23 PM
Let me take what I see as the points here

A Stored Proc on 2K executing a package on 2K5 by using xp_cmdshell is
going to require you to install SSIS on the 2K Server.

http://blogs.msdn.com/michen/archive/2006/11/11/ssis-product-level-is-insufficient.aspx


By far the easiest way to do this is to call a job on the 2K5 server
that executes the package.



--


Allan Mitchell
http://wiki.sqlis.com | http://www.sqlis.com | http://www.sqldts.com |
http://www.konesans.com




[quoted text, click to view]
AddThis Social Bookmark Button