Solved

SP to run DTS's

Posted on 2012-04-05
2
260 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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Everyone has problem when going to load data into Data warehouse (EDW). They all need to confirm that data quality is good but they don't no how to proceed. Microsoft has provided new task within SSIS 2008 called "Data Profiler Task". It solve th…
The Delta outage: 650 cancelled flights, more than 1200 delayed flights, thousands of frustrated customers, tens of millions of dollars in damages – plus untold reputational damage to one of the world’s most trusted airlines. All due to a catastroph…
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
Via a live example, show how to setup several different housekeeping processes for a SQL Server.

867 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

20 Experts available now in Live!

Get 1:1 Help Now