tags:

views:

2467

answers:

3

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
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
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
+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
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