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 2000 Forums
 Import/Export (DTS) and Replication (2000)
 Execute DTS package from stored procedure

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2002-10-25 : 09:50:23
Dan writes "How do I execute a DTS package from a stored procedure. I am using SQL Server 2000 with Windows NT.

Thanks,

Dan H."

jasper_smith
SQL Server MVP & SQLTeam MVY

846 Posts

Posted - 2002-10-25 : 10:39:48
3 real options

1) Use DTSRUN via xp_cmdshell
2) Use sp_OA* procedures with the Package Object and the LoadFromSQLServer and Execute methods
3) Create a job that runs your DTS package using CmdExec jobstep and DTSRUN and call sp_start_job

Of these (1) is probably the easiest but requires xp_cmdshell access

Details of the Package Object and DTSRUN utility are in BOL



HTH
Jasper Smith
Go to Top of Page
   

- Advertisement -