Solved

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

Posted on 2004-08-11
6
616 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

 
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

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

Question has a verified solution.

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

This post looks at MongoDB and MySQL, and covers high-level MongoDB strengths, weaknesses, features, and uses from the perspective of an SQL user.
In this blog post, we’ll look at how ClickHouse performs in a general analytical workload using the star schema benchmark test.
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…
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…

628 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