How can I store a .NET double in an SQL Server 2008 data type?
I get an exception 'Parameter value '1.3465492655247000' is out of range' when I try to store a double in a numeric(16, 16) column. Because the number has 16 decimal place and a 1 in front. numeric(16.16) is the maximum i can set in SQL Server for that type.
I created an ADO.NET dataset in C# and there the column is set as decimal. I cast the double to a decimal.
This site shows the SQL Server 2008 data types