Wrox Programmer Forums
Go Back   Wrox Programmer Forums > SQL Server > SQL Server DTS
|
SQL Server DTS Discussion specific to Data Transformation Service with SQL Server. General SQL Server discussions should use the general SQL Server forum. Readers of the book Professional SQL Server 2000 DTS with questions specific to that book should post in that book forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server DTS section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 12th, 2004, 01:26 PM
Authorized User
 
Join Date: Dec 2003
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to AyatKh
Default RUN DTS from Stored Procedure

I have a couple of DTS which I want them to run one after another and at the end I want to run a VBS.
How can I Run a DTS from the SQL Server Agent? my Goal is put the Execute command for each DTS in differernt Agen steps.
Thanks

 
Old February 12th, 2004, 02:00 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts
Default

There is a dtsrun utility that you can use to run a DTS package from SQL Server. Check it out in books online.
 
Old April 11th, 2004, 11:44 AM
Registered User
 
Join Date: Apr 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,
Create a stored procedure and put this line after AS,
exec master..xp_cmdshell 'dtsrun /S YourServerName /N YourDTSPackageName /E '

'/U' '/S' must be used instead of E for Username and password credentials instead of trusted connection '/E'

YOu can ruan as amany packages as you want.
Corvin







Similar Threads
Thread Thread Starter Forum Replies Last Post
DTS Log detail with Run Status 0 Nicos SQL Server DTS 0 March 3rd, 2006 11:18 AM
Scheduling a stored procedure to run every 30 minu palvin SQL Server 2000 6 August 4th, 2005 08:57 AM
Run DTS from ASP rweide Classic ASP Databases 2 January 18th, 2005 01:14 PM
Problem to run delete and exec DTS in Stored Proc tyh79 SQL Server DTS 7 July 14th, 2004 10:27 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.