DataType Issue From Oracle to SQL

  • Hello Friends,

    I am trying to migrate one database from oracle to sql 2008 and confused with one particular datatype. In oracle I have a datatype “Number” and I am using “Numeric” in SQL server. Can you guys tell me if it is an appropriate datatype for this conversion? Please Help

  • Per Oracle, Numeric is for fixed and floating point numbers. That's more similar to SQL Server's Float/Real datatype.

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • it depends; you have to look at oracle and see the size that is assigned; you can't just read NUMBER, when you describe the table you need the size also:, like NUMBER(10~= integer, and NUMBER(19,4) is ~= money.

    i do a lot of SQL to Oracle conversions, and use this page as a handy reference:

    http://docs.oracle.com/cd/B19306_01/gateways.102/b14270/apa.htm

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply