Solved

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

Posted on 2004-08-11
6
605 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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
LDAP find expired users 8 96
understanding output of mysql version 2 61
Best RAID for a BDD Oracle 4 69
SQL Query assistance 16 25
Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
CCModeler offers a way to enter basic information like entities, attributes and relationships and export them as yEd or erviz diagram. It also can import existing Access or SQL Server tables with relationships.
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…

772 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