Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Run A Bunch Of Scripts
Message
From
14/10/2009 14:47:44
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Microsoft SQL Server
Category:
Other
Miscellaneous
Thread ID:
01429356
Message ID:
01429390
Views:
46
>I have 28 CREATE TABLE scripts and 38 stored procedures all in seperate files. Is there a way in SQL 2005 to run all these together, so that I can recreate the database?
>
>Right now I have to open each script file and execute them one at a time.
>
>
>Thanks.

You can either copy them to a single file and run or programmatically create a loop that would execute each one (ie: SQLExec(m.handle, filetostr(aScript[m.ix])).

Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform