Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Deploying SQL Express Databases
Message
De
17/10/2010 10:25:30
 
 
À
16/10/2010 20:24:40
Information générale
Forum:
ASP.NET
Catégorie:
Installation et Configuration
Versions des environnements
Environment:
C# 4.0
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Desktop
Divers
Thread ID:
01484908
Message ID:
01485804
Vues:
53
>Still trying to decide on distributing the MDFs or just running a script. I'll need to run scripts for upgrades, so I have to have that capability in any case.
>
>I also haven't decided on using SMO, Process.Start(sqlcmd), or breaking the SQL on the "GO" words and using the normal ExecuteNonQuery.


I've always used scripts. I used to use an old utility I wrote in 2002 (using VFP) for processing versioned scripts to create a database. The database is updated with the same utility when new scripts are available. It uses SQL DMO (because it's so old).

This year, I finally got around to writing a .NET version of my VFP utility. I used SMO this time around. The list of script versions are stored as XML (whereas the actual scripts are simply .sql files). Not very secure, since the whole database schema can be seen by looking at those files (whereas, all the scripts in my VFP version were stored in DBFs). I'm not sure if that matters or not ... but this was a quick-and-dirty utility I wrote and might make better when/if I have time to get around to it.

Also, this was regular SQL Server, not Express ... although I doubt if that matters either.

Just my 2 cents.

~~Bonnie
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform