Solved

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

Posted on 2004-08-11
6
607 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
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

 
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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
When it comes to protecting Oracle Database servers and systems, there are a ton of myths out there. Here are the most common.
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…

856 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