Please start any new threads on our new site at We've got lots of great SQL Server experts to answer whatever question you can come up with.

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Register Now and get your question answered!
Save Password
Forgot your Password?

 All Forums
 SQL Server 2008 Forums
 Transact-SQL (2008)
 Data type decimal is rounding off
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Starting Member

7 Posts

Posted - 02/01/2013 :  12:48:45  Show Profile  Reply with Quote
There has to be something obvious that I'm overlooking here. I have data in a SQL Server 7.0 table that has data type numeric(18,3). I have an equivalent table in SQL Server 2008 R2, but it has data type decimal(9,3). The data in the 7.0 table is -0.031, but the data in the 2008 table is 0.000. Other examples 1.577 is rounded up to 2.000, .777 is rounded up to 1.000.

I thought the numeric and decimal types were functionally the same. It seems that decimal is the more commonly used. I *thought* I read where numeric may be going away in some future version of SQL Server.

I can use the numeric data type and solve this problem, but I was wondering if I could find an explanation as to yes, decimal rounds off.

Flowing Fount of Yak Knowledge

4614 Posts

Posted - 02/01/2013 :  12:51:31  Show Profile  Reply with Quote
Did you move the data from SQL 7 to 2008R2? If so how?
Go to Top of Page

Starting Member

7 Posts

Posted - 02/01/2013 :  12:56:13  Show Profile  Reply with Quote
I'm using Import Wizard to pull the data over.
Go to Top of Page
  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.31 seconds. Powered By: Snitz Forums 2000