Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Use of N in commands
Message
De
09/03/2011 16:14:27
 
 
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:
01503083
Message ID:
01503096
Vues:
25
>If the field is defined as nvachar(...) you don't really need to add N' in front as the field still will be nvarchar. You need N' if you use unicode characters.
>
>sp_ExecuteSQL requires nvarchar parameters (Command to execute and Parameters Definition)

The declaration is:
DECLARE @Command nvarchar(4000)
So, at the end, if I have it or not, because of that declaration, it will not bother anything. But, as a best practice, I guess it would be better to keep it there.
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform