how to call dts from a job

I have a DTS package that runs in about 10-15 min. I am currently using a stored proc using the sam query as the dts. it takes 20-30 min.

i call the store proc from a job is there a way to call a dts package from a job???
LeeHopkinsAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

KarinLoosCommented:
yes, , right mouse click on the DTS job in EE , it gives you the option to schedule as a job
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
LeeHopkinsAuthor Commented:
yes but i need to call it in sequence of other store proc
IE
step 1 Store proc
step 2 stored proc
step 3 DTS
step 4 stored proc
step 5 dts

each step is dependent on the one before it
0
KarinLoosCommented:
what i did was schedule the DTS package, as an example,  then schedule the real job and copy the command of the step over to the new step (edit paste style)
you can set each step to proceed only if the previous step succeeded.
sorry about the EE (its monday) , should be IE.

HTH
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

RichardCorrieCommented:
You can create a multi-step job that does just that!!!

do as KarinLoos suggests and create a schedule to run the DTS then (in EE) expand Management then expsnd SQL Server Agent, Click on Jobs. the right hand pane will show list of jobs.
Select you job by clicking on it
right mouse click, select properties
click "steps" tab
Click insert to add step above DTS
enter details to run your stored procedures

add other steps as required
Save and close

ensure that the steps are due to run in the correct order

/Richard
0
danblakeCommented:
call a dts package from a job???
--> Easy way,

...

use dtsrun ...
Create a Command Shell Step and place the dtsrun vars in the step, execute a DTS package saved in the SQL Server msdb database, use:
dtsrun /Sserver_name /Uuser_nName /Ppassword /Npackage_name /Mpackage_password
0
LeeHopkinsAuthor Commented:
I am unfamilure with a command shell step
0
danblakeCommented:
OK, .. in your command step in the edit view, choose Operating System Command (CmdExec) --> This will be where it normally says Transact SQL (TSQL )...

Then put in the dtsrun.... text.
You might want to take a moment to have a look at the different available job step types, ....
(If nothing else, you might find that you can run all sorts of items here that you will find very useful in future).
0
arbertCommented:
Even better, run the command DTSRUNUI from a DOS prompt or Start/Run and the GUI will create the command line that you need to execute your package.  Then, like suggested above, schedule.

Brett
0
aaaaaaCommented:
right click dts>schedule package>...you can shedule a job here...> ok.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SQL Server

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.