Retrieving float or double values from sql server

Retrieving float or double values from sql server

Old forum URL: forums.lhotka.net/forums/t/7420.aspx


nbx posted on Friday, August 07, 2009

Having problem retrieving float/double numbers from the stored proc, it's a straight select from the table via stored proc, but getting 'Specified cast is not valid.' exception. However, when I convert type from float to decimal in c# class, and using SafeDataReader.GetDecimal(...) instead of GetFloat or GetDouble,  it works. Any ideas ?

thank you

Copyright (c) Marimer LLC