bulk insert from a Excel Sheet

  • I need to import data from a Excel Sheet into a table using the bulk insert command.

    Can I get know the command.

    I tried the below syntax

    BULK INSERT CONFIG_25.dbo.[HISConfigValues_RD]

    FROM 'D:\HISConfigValues_RD.XLS'

    WITH (ROWTERMINATOR = '' )

    I get the below error

    OLE DB provider 'STREAM' reported an error. The provider did not give any information about the error.

    The statement has been terminated.

    Thanks in advance

    Mouli

  • you should import from excel to a .txt and then bulk insert from the .txt adding the datafiletype parameter.

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

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