dbTalk Databases Forums  

Strange ... SQL 2000 & SQL 2005

microsoft.public.sqlserver.clients microsoft.public.sqlserver.clients


Discuss Strange ... SQL 2000 & SQL 2005 in the microsoft.public.sqlserver.clients forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Rogers
 
Posts: n/a

Default Strange ... SQL 2000 & SQL 2005 - 05-03-2007 , 03:53 PM






When I run the following query in SQL Server 2000, it works fine but when I
run into SQL Server 20005, it gave me following error.

Msg 8115, Level 16, State 7, Line 1

Arithmetic overflow error converting numeric to data type numeric.

Any idea, how can I resolve it, I migrate my database into SQL Server 2005
and this type of errors are comming.

Please help...



Reply With Quote
  #2  
Old   
Andrew J. Kelly
 
Posts: n/a

Default Re: Strange ... SQL 2000 & SQL 2005 - 05-03-2007 , 08:08 PM






What command is that?

--
Andrew J. Kelly SQL MVP

"Rogers" <naissani (AT) hotmail (DOT) com> wrote

Quote:
When I run the following query in SQL Server 2000, it works fine but when
I run into SQL Server 20005, it gave me following error.

Msg 8115, Level 16, State 7, Line 1

Arithmetic overflow error converting numeric to data type numeric.

Any idea, how can I resolve it, I migrate my database into SQL Server 2005
and this type of errors are comming.

Please help...





Reply With Quote
  #3  
Old   
Anthony Thomas
 
Posts: n/a

Default Re: Strange ... SQL 2000 & SQL 2005 - 05-06-2007 , 12:09 PM



What patch level on each installation?

Also, check your sp_configure USER OPTIONS settings for compatibility.

Finally, SP4 for SS2K changed the behavior of the optimizer for implicit
conversion on mixed data type comparisons. This has persisted into the
SS2K5 framework. When you match unlike data type, use explicit conversion
to avoid the issue.

Basically, if your SS2K installation is pre-SP4, then either applying SP4 or
upgrading to SS2K5 will introduce the behavior you are describing.

http://support.microsoft.com/kb/899976/en-us

http://support.microsoft.com/kb/271566/en-us

Sincerely,


Anthony Thomas


--

"Rogers" <naissani (AT) hotmail (DOT) com> wrote

Quote:
When I run the following query in SQL Server 2000, it works fine but when
I
run into SQL Server 20005, it gave me following error.

Msg 8115, Level 16, State 7, Line 1

Arithmetic overflow error converting numeric to data type numeric.

Any idea, how can I resolve it, I migrate my database into SQL Server 2005
and this type of errors are comming.

Please help...





Reply With Quote
Reply




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.