Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Executing a Stored Proc from a DOS Batch Script

Status
Not open for further replies.

akki007

Programmer
May 22, 2003
55
GB
Is this possible? I know you can do it in Oracle, but not sure what the utility is in SQL server.

I can execute a SQL script using osql and a DTS package using dtsrun so Im guessing its not difficult to do!

Thanks
 
You can use osql to run a stored procedure as well.
Code:
osql -S {ServerName} -E -Q "exec usp_Something"

Denny

--Anything is possible. All it takes is a little research. (Me)

[noevil]
(My very old site)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top