Oct 1, 2003 #1 vituja Programmer Joined Oct 1, 2003 Messages 30 Location 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 Joined Dec 13, 2002 Messages 3,059 Location 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 Joined Oct 30, 2001 Messages 3,199 Location 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