Results 1 to 4 of 4

Thread: Open Excel File

  1. #1
    Join Date
    Mar 2006
    Posts
    82

    Unanswered: Open Excel File

    hey
    I am just trying a simple query of an Excel file.
    Code:
    Select * FROM OPENROWSET('Microsoft.Jet.OLEDB.4.0','Excel 8.0;Database=C:\MyFile.xls;HDR=YES', 'SELECT * FROM [Sheet1$]')
    and i am getting this error

    Code:
    Server: Msg 7399, Level 16, State 1, Line 1
    OLE DB provider 'Microsoft.Jet.OLEDB.4.0' reported an error. The provider did not give any information about the error.
    OLE DB error trace [OLE/DB Provider 'Microsoft.Jet.OLEDB.4.0' IDBInitialize::Initialize returned 0x80004005:  The provider did not give any information about the error.].
    I know for a fact that the path is correct and that it is the path of the server. So what is the problem with this??

    tibor

  2. #2
    Join Date
    Nov 2004
    Location
    on the wrong server
    Posts
    8,835
    Provided Answers: 6
    does someone have the spreadsheet open?
    “If one brings so much courage to this world the world has to kill them or break them, so of course it kills them. The world breaks every one and afterward many are strong at the broken places. But those that will not break it kills. It kills the very good and the very gentle and the very brave impartially. If you are none of these you can be sure it will kill you too but there will be no special hurry.” Earnest Hemingway, A Farewell To Arms.

  3. #3
    Join Date
    Mar 2006
    Posts
    82
    nope not at all

  4. #4
    Join Date
    Mar 2006
    Posts
    82
    oh ok i found out the issue. i was using vb with excel and was terminating the debug program without closing out excel so i had several in memory still

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •