Retrieving data from excel file

  • Hi

    I have 100 records in a excel file.

    I want a query to select these records.

    So in sql server is it possible

    If y Please help me.

    Than'x

  • SELECT * FROM

    OPENROWSET('Microsoft.Jet.OLEDB.4.0',

    'Excel 8.0;Database=C:\temp\book1.xls;HDR=YES', [sheet1$])

    Change to the path for the xls file and use HDR=NO if there are no headers in the file (in which case the columns will be named F1,F2... etc)

    Far away is close at hand in the images of elsewhere.
    Anon.

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

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