Oct 1, 2003 #1 vituja Programmer Oct 1, 2003 30 US Hi All, Can a DTS package be executed from a stored procedure? If so how would I go about writing the SP code to execute the package? Any help would be appreicated. Thanks.
Hi All, Can a DTS package be executed from a stored procedure? If so how would I go about writing the SP code to execute the package? Any help would be appreicated. Thanks.
Oct 1, 2003 1 #2 JamesLean Programmer Dec 13, 2002 3,059 GB You can use xp_cmdshell to execute the dtsrun utility, something like: Code: EXEC master..xp_cmdshell 'dtsrun /Smyserver /E /Nmypackage' This runs mypackage on myserver, using a trusted connection. Look up dtsrun in BOL for all info. --James Upvote 0 Downvote
You can use xp_cmdshell to execute the dtsrun utility, something like: Code: EXEC master..xp_cmdshell 'dtsrun /Smyserver /E /Nmypackage' This runs mypackage on myserver, using a trusted connection. Look up dtsrun in BOL for all info. --James
Oct 1, 2003 #3 JayKusch MIS Oct 30, 2001 3,199 US You would do something like this ... EXEC xp_cmdshell 'dtsrun /S /U /P /N PackageName' Thanks J. Kusch Upvote 0 Downvote
You would do something like this ... EXEC xp_cmdshell 'dtsrun /S /U /P /N PackageName' Thanks J. Kusch