ODbc Connection String to Excel

I need use ODBC to access a excel file (.xls) which is password protected. I use ODBC string

"Driver=....; DBQ=file1.xls; pwd=pass1", I got message the file can not be decrypted.

Please help.

Thanks



Answer this question

ODbc Connection String to Excel

  • murratore

    I don't believe there is a direct way to open password protected Excel files via Odbc, even the native driver. See the following article for details.

    211378 (http://support.microsoft.com/kb/211378/EN-US/) XL2000: "Could Not Decrypt File" Error with Password Protected File

    Just from the KB article, if your scenario would allow launching Excel to open the file, there might be a workaround somewhere, but that might also require manual password entry by a user.


  • ODbc Connection String to Excel