Execute SQL Server scripts

后端 未结 4 1460
余生分开走
余生分开走 2021-01-05 23:23

How can I automate process of running all SQL scripts from given folder ?

4条回答
  •  半阙折子戏
    2021-01-05 23:54

    You can also use powershell to execute scripts in a given folder. http://sqlblogcasts.com/blogs/martinbell/archive/2009/07/30/Executing-all-.SQL-files-in-a-directory-with-Powershell.aspx Jay

提交回复
热议问题