Executing set of SQL queries using batch file?

前端 未结 4 913
生来不讨喜
生来不讨喜 2020-11-30 00:55

I am using a SQL Server database. I have these SQL queries:

Delete from TableA;
Delete from TableB;
Delete from TableC;
Delete from TableD;
Delete from Table         


        
4条回答
  •  夕颜
    夕颜 (楼主)
    2020-11-30 01:24

    Check out SQLCMD command line tool that comes with SQL Server. http://technet.microsoft.com/en-us/library/ms162773.aspx

提交回复
热议问题