Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Decimal type initialization
Message
 
 
À
25/01/2013 10:01:47
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
C# 4.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01563996
Message ID:
01564064
Vues:
31
>The decimal looks OK to me (but don't take my word for it :-})
>I'm not sure about char. In .NET char is a two-byte structure whereas (I think? ) char in SQL is one byte. I've no idea how well those play together....

Other developers used SqlDbType.Varchar. I need to be sure I am correct in my thinking I need to use Char if the field is Char - would be nice if someone can deny or confirm.

In the meantime, I'll try running profiler and see how the parameter is being passed to SQL.
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