Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Updating table structures on distributed Apps
Message
 
 
À
13/01/2012 17:21:08
Information générale
Forum:
ASP.NET
Catégorie:
Bases de données
Versions des environnements
Environment:
C# 4.0
Divers
Thread ID:
01532901
Message ID:
01532956
Vues:
33
>Thanks, Naomi.
>
>They seem to be making a string out of the script and executing it as a command.
>That's what I had in mind, but they have some good tips in there that will save some hunting around.
>
>
>>>See a first sample I googled (bottom of the thread) here
>http://social.msdn.microsoft.com/Forums/en/adodotnetdataproviders/thread/43e8bc3a-1132-453b-b950-09427e970f31
>
>You need to google on 'SMO run SQL Script .NET'
>
>Another link
>http://mkdot.net/blogs/boban/archive/2008/08/07/run-a-sql-script-files-in-c.aspx

I found my answer to Michel Re: Executing a script from .NET Thread #1386831 Message #1386855 and from the links in that answer I think the best is http://forums.asp.net/t/1379288.aspx/2/10
(and see also Elarper's solution referenced there).

and just in case
Re: Returning result from a script Thread #1387061 Message #1387074
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform