Solved

SP to run DTS's

Posted on 2012-04-05
2
254 Views
Last Modified: 2012-04-16
Team -

I have 5 DTS packages which i am running to upload 5 different csv files to 5 different tables. This is a routine process which i need to run everyday.

can someone help me to write an SP where i call all the 5 dts's pls. so i just have to run 1 SP instead of 5 different dts
0
Comment
Question by:davidi1
2 Comments
 
LVL 29

Accepted Solution

by:
QPR earned 500 total points
ID: 37815262
this requires using  xp_cmdshell.
If you'd prefer not to do this then set up a SQL "job" for the DTS package and then run the job from within your SP by using sp_start_job
Use this for each job you want to start.

http://msdn.microsoft.com/en-us/library/ms186757(v=sql.90).aspx
0
 
LVL 25

Expert Comment

by:jogos
ID: 37815295
How to run dts from sql
http://www.sql-server-performance.com/forum/threads/how-to-run-dts-from-t-sql.19155/

But mind on how to handle errors.

Which sql version? You can also make one SSIS package which handles the 5 files.
http://msdn.microsoft.com/en-us/library/ms141026(v=sql.100).aspx
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

A recent questions about how to add SSRS named instances, couldn't find any that talks about SQL server 2008, anyway I decided to help by creating some screen shots. The installation is straightforward, you just pop the SQL server 2008 installati…
Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function
Via a live example, show how to set up a backup for SQL Server using a Maintenance Plan and how to schedule the job into SQL Server Agent.

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now