What is the C# equivalent to the sql server 2005 real type?
+9
A:
it is a Single
see here for more info on SQL Server to .Net DataTypes
YonahW
2008-09-24 20:09:41
Why was this answer not accepted? This is not how the community should be working. Too many questions are going weeks with no accepted answer.
Pittsburgh DBA
2008-10-06 22:26:27
Who cares? The author didn't care to bother, but we as the community don't need their blessing to see and influence the "best" answer.
Yadyn
2010-02-25 15:54:58
+1
A:
Single is not the correct answer as it rounds the decimal part.. For instance 2.0799999 will be converted to 2.08. If there are no constraints regarding the rounding then it should be good.
msbyuva
2010-03-04 18:35:46
A:
Double can be used as the .NET Equivalent Datatype for Real Datatype of SQL Server
Double gets the exact value with out Rounding
msbyuva
2010-03-04 21:42:24