Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Too much validation from SQL Server
Message
De
26/02/2010 02:22:16
 
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Versions des environnements
SQL Server:
SQL Server 2008
Application:
Web
Divers
Thread ID:
01451147
Message ID:
01451150
Vues:
44
>Just put them in two separate batches:
>
>ALTER TABLE [Advertis] ADD [AddUserTemporary] int
>GO
>UPDATE [Advertis] SET [AddUserTemporary]=AddUser
>
>
>or if you have to do this from an application:
>
>
>EXEC sp_executesql N'ALTER TABLE [Advertis] ADD [AddUserTemporary] int'
>EXEC sp_executesql N'UPDATE [Advertis] SET [AddUserTemporary]=AddUser'
>
Correct, by using GO, it works. I will probably use this approach.

Thanks
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform