Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Running scripts from a script
Message
General information
Forum:
Microsoft SQL Server
Category:
Database management
Miscellaneous
Thread ID:
00703684
Message ID:
00703716
Views:
21
Nope. A script cannot chain to another script. You'll have to run everything together or convert things to stored procedures.

Another option would be to create .bat or .cmd and run all of the scripts using OSQL.exe.

-Mike

>Hi folks
>
>I have a 'set' of scripts which do database set up stuff such as create defaults, indexes, stored procedures etc. I want to be able to run these scripts from another script file so things get done in 1 go. I've searched around but not really have any joy. Does anyone know if this can be done and if so how ?
>
>Regards
>
>Kal
Michael Levy
MCSD, MCDBA
ma_levy@hotmail.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform