Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Usage of GO in script
Message
 
 
À
26/03/2015 19:11:50
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Versions des environnements
SQL Server:
SQL Server 2012
Application:
Web
Divers
Thread ID:
01617303
Message ID:
01617304
Vues:
60
This message has been marked as the solution to the initial question of the thread.
>I have a very large script. In order to have it compiled, I need to place a GO where I create some fields so the code below would be able to compile. However, now that I have that, it means the @Command variable down below does not inherit from the previous declaration as it seems the GO command wipes out the memory of the declarations. Is there a way to have a GO command and not loosing the declarations?

No. GO marks the end of a batch. GO is not a part of T-SQL but end of batch marker for a tool that executes the script
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform