Please start any new threads on our new site at http://forums.sqlteam.com. 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
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 Database Design and Application Architecture
 Oracle Number length to SQL Numeric length
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

giszzmo
Starting Member

29 Posts

Posted - 04/07/2015 :  22:57:22  Show Profile  Reply with Quote
Hi, We are in the process of bringing our data over from Oracle to SQL so now some of the conversions are coming out differently. I need to make them the same in SQL as they were intended in Oracle. One such conversion I have is

Oracle
Datatype Length Precision Scale
number 22

SQL
Datatype Length Precision Scale
numeric 17 38 0

I understand how it got 38 and 0 but I don't understand how it got the length of 17. Also, how would I change it (on the SQL side) to match that of Oracle? If anyone could point me in the right direction. Thanks!

Kristen
Test

United Kingdom
22859 Posts

Posted - 04/08/2015 :  04:02:01  Show Profile  Reply with Quote
I'm guessing that your column datatype, in MS SQL, is FLOAT and perhaps you need to use DECIMAL instead? (or NUMERIC which is a synonym for DECIMAL - not sure which flavour Oracle uses )
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.02 seconds. Powered By: Snitz Forums 2000