Click here to Skip to main content
16,005,236 members
Home / Discussions / Database
   

Database

 
QuestionImport DB diagram in Visiso Pin
merwa14-Jul-07 22:06
merwa14-Jul-07 22:06 
AnswerRe: Import DB diagram in Visiso [modified] Pin
martin_hughes15-Jul-07 13:09
martin_hughes15-Jul-07 13:09 
QuestionSql query find the primary key ,foreign key relationship between tables Pin
Rmesh13-Jul-07 23:41
Rmesh13-Jul-07 23:41 
AnswerRe: Sql query find the primary key ,foreign key relationship between tables Pin
Paul Conrad14-Jul-07 7:16
professionalPaul Conrad14-Jul-07 7:16 
AnswerRe: Sql query find the primary key ,foreign key relationship between tables Pin
Colin Angus Mackay14-Jul-07 10:28
Colin Angus Mackay14-Jul-07 10:28 
GeneralRe: Sql query find the primary key ,foreign key relationship between tables Pin
Paul Conrad14-Jul-07 10:50
professionalPaul Conrad14-Jul-07 10:50 
QuestionSystem.OverflowException for large Decimal value Pin
Uwe Keim13-Jul-07 23:35
sitebuilderUwe Keim13-Jul-07 23:35 
AnswerRe: System.OverflowException for large Decimal value [modified] Pin
Mike Dimmick14-Jul-07 5:51
Mike Dimmick14-Jul-07 5:51 
The .NET Framework documentation states:

"The Decimal data type provides the greatest number of significant digits for a number. It supports up to 29 significant digits and can represent values in excess of 7.9228 x 10^28. It is particularly suitable for calculations, such as financial, that require a large number of digits but cannot tolerate rounding errors."

Your number is larger than 2^96 in the mantissa portion. It simply won't fit in the data type. Your only workaround is to use ToDouble, as in the thread, which will lose some precision (as double is only 64 bits). If you need something larger, you will need to implement your own scaled integer class and access the data as raw binary using GetBytes.

[EDIT:] It looks like you should be able to use the SqlDecimal type. I see you're using GetValues to retrieve all of the row's values in one go. Consider using GetSqlValues instead, to use the SQL types. I've not tried this.

-- modified at 11:57 Saturday 14th July, 2007

Stability. What an interesting concept. -- Chris Maunder

GeneralRe: System.OverflowException for large Decimal value Pin
Uwe Keim14-Jul-07 5:55
sitebuilderUwe Keim14-Jul-07 5:55 
GeneralRe: System.OverflowException for large Decimal value Pin
Uwe Keim14-Jul-07 6:47
sitebuilderUwe Keim14-Jul-07 6:47 
GeneralRe: System.OverflowException for large Decimal value Pin
Mike Dimmick14-Jul-07 8:30
Mike Dimmick14-Jul-07 8:30 
GeneralRe: System.OverflowException for large Decimal value Pin
Uwe Keim14-Jul-07 8:36
sitebuilderUwe Keim14-Jul-07 8:36 
GeneralRe: System.OverflowException for large Decimal value Pin
Mike Dimmick14-Jul-07 8:54
Mike Dimmick14-Jul-07 8:54 
GeneralRe: System.OverflowException for large Decimal value Pin
Uwe Keim14-Jul-07 8:57
sitebuilderUwe Keim14-Jul-07 8:57 
GeneralRe: System.OverflowException for large Decimal value Pin
Uwe Keim14-Jul-07 20:15
sitebuilderUwe Keim14-Jul-07 20:15 
Questionusing datagrid in vb.net Pin
Rharzkie13-Jul-07 23:16
Rharzkie13-Jul-07 23:16 
AnswerRe: using datagrid in vb.net Pin
Manas Bhardwaj14-Jul-07 4:49
professionalManas Bhardwaj14-Jul-07 4:49 
GeneralRe: using datagrid in vb.net [modified] Pin
Rharzkie14-Jul-07 20:23
Rharzkie14-Jul-07 20:23 
AnswerRe: using datagrid in vb.net Pin
TomGarth15-Jul-07 9:05
TomGarth15-Jul-07 9:05 
Questionrecover a database in sql 2005 server Pin
prasadbuddhika13-Jul-07 22:54
prasadbuddhika13-Jul-07 22:54 
AnswerRe: recover a database in sql 2005 server Pin
Mike Dimmick14-Jul-07 5:53
Mike Dimmick14-Jul-07 5:53 
QuestionHelp for select statement Pin
Prakash_Mishra13-Jul-07 22:29
Prakash_Mishra13-Jul-07 22:29 
AnswerRe: Help for select statement Pin
kubben14-Jul-07 1:22
kubben14-Jul-07 1:22 
GeneralRe: Help for select statement Pin
Prakash_Mishra14-Jul-07 1:37
Prakash_Mishra14-Jul-07 1:37 
AnswerRe: Help for select statement Pin
Arun.Immanuel14-Jul-07 2:37
Arun.Immanuel14-Jul-07 2:37 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.