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
 Transact-SQL (2012)
 DTSX

Author  Topic 

Pete_N
Posting Yak Master

181 Posts

Posted - 2014-07-30 : 08:42:34
I have a problem I need to resolve. or indeed if I am on the right forum.

We build a dtsx with VS2012 on a SQL2014 server. I need to execute that dtsx from a SQL 2008R2 Stored Procedure.

Is it possible to run the sp from vs2008 to run the dtsx or would I need to call a sp on the SQL2014 server to execute the dtsx.

because of the components used in the dtsx for CRM I cannot build the dtsx on the 2008 Rs server

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2014-07-30 : 12:39:37
Can it be done asynchronously? If so, you could have the stored procedure start a job that executes the package. If it needs to be synchronous, you could have the stored procedure pause and keep checking the status of the job. Alternatively, you can run the package via xp_cmdshell, but that's highly against best security practices.

Tara Kizer
SQL Server MVP since 2007
http://weblogs.sqlteam.com/tarad/
Go to Top of Page
   

- Advertisement -