Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Run A Bunch Of Scripts
Message
De
14/10/2009 14:47:44
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Divers
Thread ID:
01429356
Message ID:
01429390
Vues:
47
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform