Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Arithmetic overflow error converting numeric to data type numeric.

Reply
Thread Tools

Arithmetic overflow error converting numeric to data type numeric.

 
 
darrel
Guest
Posts: n/a
 
      07-19-2007
I'm getting this error:

Arithmetic overflow error converting numeric to data type numeric.

Triggered on this line of my code:
objOleDbAdapter.Fill(DS, "rss")

Everything works when this is pointed at one DB server (our staging server)
but when we point it at another DB server (our production server) I get the
error.

What would be causing this?

What's odd is that this was working previously. Could something on the DB
server itself becausing this?

-Darrel



 
Reply With Quote
 
 
 
 
Alexey Smirnov
Guest
Posts: n/a
 
      07-19-2007

"darrel" <> wrote in message
news:%...
> I'm getting this error:
>
> Arithmetic overflow error converting numeric to data type numeric.
>


I think the problem is in the sql select statement used in OleDbAdapter


 
Reply With Quote
 
 
 
 
darrel
Guest
Posts: n/a
 
      07-19-2007
> What's odd is that this was working previously. Could something on the DB
> server itself becausing this?


We have two production servers (load balanced).

Initially, they both had this error. While I was trying to fix and test the
code on one of the two servers, the other one started working again.

So, I re-uploaded the same DLL file for our site and now one of our two
production servers runs fine, but the other is still giving me the
arithmetic error. Same code. Two different machines. Any ideas?

I'll be rebooting the bad one at the end of the day hoping that might fix
it.

-Darrel


 
Reply With Quote
 
darrel
Guest
Posts: n/a
 
      07-19-2007
> I'll be rebooting the bad one at the end of the day hoping that might fix
> it.


No reboot necessary. An hour later, they're working again. Any clues as to
what might be going on?

-Darrel


 
Reply With Quote
 
darrel
Guest
Posts: n/a
 
      07-19-2007
> No reboot necessary. An hour later, they're working again. Any clues as to
> what might be going on?


Well, I've narrowed it down to the DB server.

Regardless of the application server, if I query server 1, it works fine, if
I query server 2, it gives me the arithmetic error.

Same code. Same DLL. Just different conection string.

If I run the query directly in each DB, I get the exact same data.

I've checked the tables and all fields are the same datatype as well.

I'm completely stumped.

At this point, it sometimes works, and sometimes doesn't.

-Darrel


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Error converting data type nvarchar to numeric Adam_Cogswell ASP .Net 1 02-29-2008 04:12 PM
Arithmetic Overflow Error When Click 'Last' Page Button Ross Culver ASP .Net Web Controls 0 08-23-2007 02:16 AM
OO C++ Workshop: Converting a String to a Numeric Type CoreyWhite C++ 2 04-06-2007 01:15 AM
Usual Arithmetic Conversions-arithmetic expressions joshc C Programming 5 03-31-2005 02:23 AM
Error converting data type varchar to numeric - stored procedures luna ASP .Net 1 02-06-2004 01:23 PM



Advertisments