SQL Server Float and Real datatypes

  • Thread starter Thread starter Mark
  • Start date Start date
M

Mark

What are the best .NET datatypes to handle SQL Server's Float and Real
datatypes? I'd like to avoid using the SQL Server specific datatypes like
SqlInt32 or similar.

Thanks in advance.

-Mark
 
And if I still didn't want to use the SqlXxxxx datatypes, which .NET
datatypes would work best? Thanks again.

Mark
 
Okay I should have been a bit clearer. Here is the conversion you need --

Native Sql Server Float --> System.Data.SqlTypes.SqlDouble --> .NET DataType
Double
Native Sql Server Real --> System.Data.SqlTypes.SqlSingle --> .NET
DataType Single

- Sahil Malik
http://dotnetjunkies.com/weblog/sahilmalik
 
Back
Top