Microsoft
Software
Hardware
Network
Question : How do I execute a Windows Batch File from SQL?
I have a job set up that in step 1 Deletes the data from a specified table.
In step 2 I would like to have the program run a Bat file I set up. This Bat file is the BCP import.
The bat file works fine if I run it on a windows scheduler, but I figured there has to be a way to run in from with in a SQL job.
I am using SQL Manager 2010, and in there one of the command types is Operating-system command or executable program
Under this option is a box to put in the command.
But I'm unsure of the command I need to use to make this work.
Any help is appreciated.
Thanks
Chip
Answer : How do I execute a Windows Batch File from SQL?
Hello
please see here:
exec master..xp_cmdshell 'c:\sqlbaglanti\guncelle.e
xe'
running calc from sql:
http://www.experts-exchang
e.com/Micr
osoft/Deve
lopment/MS
-SQL-
Serve
r/Q_207482
99.html
byte
Random Solutions
Difference between Icefaces,myfaces,richfaces
in JSF?
Windows Update Error on Hyper-V guest on a HP Proliant ML370 G6 (NC375i network card)
Block Logme internally
Windows 7 recently used programs is blank
Default Printer Changes using Terminal Server
Use different HTTP Redirects on multiple virtual directories in IIS 7.5
Generate the members from AD user group
Lost apps on iPhone 3GS after itunes sync
Office 2010 KMS on non-AD DNS?
How to submit an asynchronous request to server to run a business service from a Business component script?