Which sql server data type best represents a double in C#? [duplicate]
-
10-07-2019 - |
Question
This question already has an answer here:
- What represents a double in sql server? 13 answers
Is it money, float, real, decimal, _________ ?
Solution
Answer to this and all mapping of types can be found here.
Chart, stolen from that page:
Updated 1/7/2013 - there's a more recent version, .not so colorful here: SQL Server Data Type Mappings
OTHER TIPS
That would be float.
Float is the sql type you are looking for.
float matches best. real is only 32 bits in precision, so essentially useless.
"The synonym for double precision is float(53)." Default value of n is 53.
From page http://msdn.microsoft.com/en-us/library/ms173773.aspx
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow