Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Extended Prime character
Message
 
 
À
24/10/2012 11:23:11
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01555588
Message ID:
01555693
Vues:
35
>>Can you look at the exact command being sent from .NET? Fire up SQL Profiler before executing your code.
>
>This is my test environment:
>
>
>exec sp_executesql N'SELECT Numero FROM Admin WHERE Admin.EmailName=@EmailName ',N'@EmailName nvarchar(40)',@EmailName=N'Michel′Fournier      '
>
>
>Between Michel and Fournier, there is the Prime character. I can see in the SQL Profiler that this is being displayed as a square box meaning that it cannot display it.
>
>In the SQL Profiler, we can see that it uses the N syntax for the value. Do you see anything wrong in there?

If you now grab that command from profile and try running it, I guess you will not get results.

Looks like the prime character is being lost before sent to SQL Server. What is the declaration of the parameter in .NET?
If it's not broken, fix it until it is.


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

Click here to load this message in the networking platform