I want to run 20 SQL scripts from a folder on a database in SQL Server.
My SQL Server is called SQL_SERVER_1
, my database is called SQL_DATABASE_1
.
I have 20 SQL files (01 - file, 02 - file, 03 - file, etc) in a folder c:\Users\Me\Desktop\New Folder
.
I'm unable to get the syntax correct for this.
On a separate note: is there any way I run all the files inside the folder consecutively one after the other, without having to write the command for every file?