Import from excel

  • Hi,

    I am trying to import some data from excel.

    Some columns (when they are not number) are not imported.

    Can someone help?

    I am using the import data wizard.

    Thank you

  • do u see the colum and data when u click on

    edit mappings/preview in the import tasks?

    Regards,

    Sushant

    Regards
    Sushant Kumar
    MCTS,MCP

  • i see the column but no data.

    I can only see some of the data,...

  • check out the datatype if it allows

    all the data to copy...

    Regards
    Sushant Kumar
    MCTS,MCP

  • also the length of the data type allowed

    Regards
    Sushant Kumar
    MCTS,MCP

  • all columns are varchar.... with a great size...

  • huh..okk..

    Tell me wat is hte extension of ur excel file (.xls/.xlsx) and

    also the no of rows in excel file ?

    Regards,

    Sushant

    Regards
    Sushant Kumar
    MCTS,MCP

  • XLS

  • 186 rows inside the file on sheet1

  • Sample of data of one of the columns:

    866030 - data imported

    866020- data imported

    866030- data imported

    866010- data imported

    866030- data imported

    863040-- data imported

    852206-- data imported

    852206 - data imported

    06206 - data not imported

    851900- data not imported

    851224 - data not imported

  • try the openrowset function

    for example :_

    SELECT * INTO dbname.dbo.tablename

    FROM OPENROWSET('Microsoft.Jet.OLEDB.4.0','Excel 8.0;Database=C:\filename.xls', 'SELECT * FROM [sheet name$]')

    Change the location as applicable... its on C drive here..

    Regards
    Sushant Kumar
    MCTS,MCP

  • Same problem...

    Most of the data is inserted as null....

  • change the datatype to nvarchar and then try again

    and also try changing the file to csv and then try

    bcp command

    Regards
    Sushant Kumar
    MCTS,MCP

  • same problem.

    I can send you the file, if you want . It only as 186 rows

  • yes send me.

    attach here as a post

    Regards
    Sushant Kumar
    MCTS,MCP

Viewing 15 posts - 1 through 15 (of 17 total)

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