Import data from multiple excel worksheets through SSIS

  • Hi,

    I want to import data from multiple excel worksheets through SSIS to a SQL Server table. Any help appreciated .

    Thanks

  • What problems are you having?

    Is the format of all the worksheets the same (column order, datatype etc)?


  • I am trying to reuse the ssis package from this link :

    http://biresort.net/blogs/pedrocgd/archive/2009/08/06/stepbystep-ssis-extract-data-from-multiple-excel-worksheets.aspx

    But if I use a different excel file name or change the variable value from '01$' to 'Sheet1$' it fails .

  • Please post the full text of the error message.


  • Below is the error message :

    Error at DFT Extract Data From Excel [EX_SRC Get Each WorkSheet Data [1]]: SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80040E37.

    Error at DFT Extract Data From Excel [EX_SRC Get Each WorkSheet Data [1]]: Opening a rowset for "'Sheet1$'" failed. Check that the object exists in the database.

    ------------------------------

    ADDITIONAL INFORMATION:

    Exception from HRESULT: 0xC02020E8 (Microsoft.SqlServer.DTSPipelineWrap)

  • Please excuse the obvious question, but is there a worksheet called Sheet1 in the workbook being accessed?

    What version of Excel are you using?

    Are you working in a 32- or 64-bit environment?


  • Excel Version 2003 . 32 bit .

  • Great - and the answer to the first question?


  • By default when I open an execl sheet , the worksheet names that is seen is sheet1,sheet2 and sheet3 .

  • Yeah I know that - but what's important is the name of the sheets in the specific Excel sheet that you are accessing in your package.


  • I am trying to use the sheets Sheet1,Sheet2 and Sheet3 from the package instead of 01,02 and 03 sheet.

  • I changed the original sheet names in the package to the ones shown below for testing.

    01 --> Sheet1

    02 --> Sheet2

    03 --> Sheet3

  • I changed the original sheet names in the package to the ones shown below for testing.

    01 --> Sheet1

    02 --> Sheet2

    03 --> Sheet3

Viewing 13 posts - 1 through 12 (of 12 total)

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