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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to call stored proc from command prompt?

Status
Not open for further replies.

steve728

Programmer
Mar 16, 2003
536
US
Will someone please refer e to help regading how to call a stored procedure from a command prompt?

SQL Server 2000 - 2005.
Win XP

Steve728
 
Check "Command Prompt Utilities" in BOL

Borislav Borissov
VFP9 SP2, SQL Server 2000/2005.
Microsoft MVP VFP
 
Many different ways, have a look at osql, isql, isqlw, sqlcmd( in 2005).

Each of these are command line utilites to access sql.

a sample being

Code:
osql /U sa /P password /d pubs /S Server9 /Q "sp_help" -o ofile.txt

"I'm living so far beyond my income that we may almost be said to be living apart
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top