Improper data while importing from excel to sql

  • Hi,

    Attached Herewith is the test file,which has a column test,

    I want to import this file in sql 2008 r2.

    But after importing the data is not appropriate,

    For eg,

    1284/1 imported as null

    2011052003069 imported as 20122+e00

    I had tried by converting the datatype in varchar,numeric.

    It seems to be the Datatype issue,

    but I am not able to get it correctly.

    Please guide me in this,

    I required this urgently.

    Thanks in Advance !!

  • Read this article, it has the solution to your problem:

    What’s the deal with Excel & SSIS?[/url]

    (tip: IMEX and TypeGuessRows)

    Need an answer? No, you need a question
    My blog at https://sqlkover.com.
    MCSE Business Intelligence - Microsoft Data Platform MVP

  • Hi Koen,

    This is really a greate article,

    but according to it,I done me setting to

    TypeGuessRows

    ImportMixedTypes

    IMEX=1

    but according solution part II in this article,

    I had made this column as general,

    But problem now is data 2011053006233 is imported as 2.0133970249e+012

    rest of thing are ok.

    Thanks in Advance!!

  • avdhut.k (2/4/2014)


    but according solution part II in this article,

    I had made this column as general,

    But problem now is data 2011053006233 is imported as 2.0133970249e+012

    Excel will detect this as a numeric column, but since it is such a large number it uses scientific notation.

    Try to read it as text (set the column as text) and convert it in the SSIS data flow to the correct data type.

    Need an answer? No, you need a question
    My blog at https://sqlkover.com.
    MCSE Business Intelligence - Microsoft Data Platform MVP

  • Thanks Koen

Viewing 5 posts - 1 through 4 (of 4 total)

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