Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Decimal type initialization
Message
 
 
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
C# 4.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01563996
Message ID:
01564064
Views:
30
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform