Groups | Blog | Home
all groups > sql server programming > march 2004 >

sql server programming : create the batch file to call the stored procedure


vanil
3/12/2004 8:56:35 PM
hi,
In dos,unix how i created the batch file to call and
execute my sotred procedure 'proc'

Dan Guzman
3/12/2004 11:47:21 PM
You can use the OSQL command-line utility to execute a proc from a batch
file. For example:

OSQL -Q"EXEC MyDatabase.dbo.MyProc" -SMyServer -E

See the Books Online for more information.

--
Hope this helps.

Dan Guzman
SQL Server MVP

[quoted text, click to view]

AddThis Social Bookmark Button