Solved

How do I Run a DOS .bat file from a dts package?

Posted on 2004-08-11
6
596 Views
Last Modified: 2012-06-21
How do I Run a DOS .bat file from a dts package?
Using SQL Server 2K - Win2K - XPP
0
Comment
Question by:Justin_Case_77
  • 3
  • 2
6 Comments
 
LVL 2

Accepted Solution

by:
MarcRosenberg earned 50 total points
ID: 11775306
Within the DTS Job... Choose Task... (4) Execute Process Task:Then specify the location of the bat file and any parameters, timeouts etc.

Good Luck.. Hope this Helps

Marc
0
 
LVL 34

Expert Comment

by:arbert
ID: 11777509
You can also use an Execute SQL Task with master..XP_CMDSHELL 'c:\yourbat.bat'

You could also use the ActiveX task to do it....What exactly do you need to do within your job flow?
0
 
LVL 3

Author Comment

by:Justin_Case_77
ID: 11779304
Yes, Thank you.  I was using an 'Execute Process Task' to execute the bat file.  I had an error in the bat file.

My recommendation to future readers of this thread is to use absolute paths to executables.
0
What Is Threat Intelligence?

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

 
LVL 34

Expert Comment

by:arbert
ID: 11779443
So you selected an answer that you found a solution to on your own?
0
 
LVL 3

Author Comment

by:Justin_Case_77
ID: 11780036
My first question on this forum and I should have debugged it myself first.  Feeling a bit humbled right now.  Going to read up on this whole point system thing. Don't really understand it yet.  Thanks to all that tried to help.
0
 
LVL 34

Expert Comment

by:arbert
ID: 11780121
If you solve a problem yourself, you can request to close the question and refund your points...
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Database tuning – How to start and what to tune. This question is frequently asked by many people, both online and offline. There is no hard and fast rule-of-thumb for performance tuning, however, before beginning the tuning process one should a…
SQL Command Tool comes with APEX under SQL Workshop. It helps us to make changes on the database directly using a graphical user interface. This helps us writing any SQL/ PLSQL queries and execute it on the database and we can create any database ob…
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

743 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

11 Experts available now in Live!

Get 1:1 Help Now