Execute stored procedure from batch file

后端 未结 3 1511
执笔经年
执笔经年 2021-02-07 10:54

How would you execute a stored procedure in SQL Server (using windows authentication) from a batch file?

3条回答
  •  刺人心
    刺人心 (楼主)
    2021-02-07 11:11

    With SQL Server 2005 and above you can use sqlcmd.exe. More info about how to use it:

    http://msdn.microsoft.com/en-us/library/ms170572.aspx

    http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=109770

提交回复
热议问题