sql server - Calling SQL Scrips from a sql script! -


It is possible to call multiple SQL scripts from a single startup.sql script.

i.e.

StartUp.sql call:

CreateDatabase.sql CreateStoreProcedureFirst.sql CreateStoreProcedureSecond.sql InsertDummyValues.sql Type other. SQL ... etc

I am loading and running each file at a time .. I run more scripts and sometimes remember a script or in the wrong order I do!

Hope this makes me understand

thanks

Yes - you can use SQLMMD (SQL Server 2005 or later) to make T-SQL, the script is slightly more flexible, contains it and is equivalent to the basic variable.

The SQLMMD command to include in: :

 : rc: \ someFolder \ script1.sql: rc: \ someFolder \ Script2.sql < / Code> 

etc.

View


Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -