知識庫

連線至 Access 365 時,出現錯誤訊息「Unable to connect to the Microsoft Access database」或「Database error 0x80040154: Class not registered」


發佈時間 : 19 Dec 2018
上次修改日期 : 24 Aug 2022

問題

嘗試連線到 Microsoft Access 365 時發生以下錯誤:

"An error occurred while communicating with Microsoft Access. Download and install the drivers and then connect(與 Microsoft SQL Server 通訊時發生錯誤。下載並安裝驅動程式,然後連線。)

Unable to connect to the Microsoft Access database
"C:\Users\<username\Filepath\>accdb". Check that the path is correct and that you have access privileges for the requested file." (無法連接到 Microsoft Access 資料庫 "C:\Users\<username\Filepath\>accdb" 檢查路徑是否正確,且您具有所請求檔案的訪問許可權)

"The drivers required to connect to the data source are not installed. The error may need to be resolved through local configuration changes on the Tableau side.資料庫錯誤 0x80040154:Class not registered Unable to connect to the Microsoft Access database "<filepath>.accdb". Check that the path is correct and that you have access privileges for the requested file."(未安裝連接到此資料來源所需的驅動程式。錯誤也許需要透過 Tableau 本機的組態設定來解決。資料庫錯誤 0x80040154: 無法連接到 Microsoft Access 資料庫「<filepath>.accdb」。檢查路徑是否正確,且您具有所請求檔案的訪問許可權。 )

錯誤在 Tableau Prep 為 Access 連線選擇檔案名稱後,或者在 Tableau Desktop 建立 Microsoft Access 連線時出現。

 

環境

  • Tableau Prep
  • Tableau Desktop
  • Windows
  • Access 365

解決方法

選項 1:

  1. 解除 Access 資料庫引擎驅動程式列在「應用程式和功能」或「程式與功能」(在「解除安裝程式」之下)下的驅動程式。這也許是 32 位元版本的驅動程式。
  2. 前往 Tableau 驅動程式頁面 (http://tableau.com/support/drivers) 並導覽至 Microsoft Access > Tableau Prep。Tableau Prep 必須安裝 64 位元版本的驅動程式。Tableau Desktop 的指示較為複雜。 
  3. 按一下驅動程式頁面的連結以前往:https://www.microsoft.com/en-us/download/details.aspx?id=13255。按一下 [下載] 連結,並務必選擇有「x64」的下載套件。安裝驅動程式。
  4. 連結現在應該有效了。您也許有必要關閉並開啟 Tableau Prep 或 Tableau Desktop 來反映變更的驅動程式。

選項 2:

  1. 如果可存取更新版本的 MS Access,則可在更新版的 Access 中載入 Access。
  2. 選取 [檔案/另存新檔] 另存為新的檔案類型 .accdb。 
  3. 關閉 MS Access。
  4. 開啟 Tableau 並載入 .accdb 檔案。

選項 3:

  1. 打開 Tableau Desktop。
  2. 連線至 MS Access .mdb 檔案。
  3. 建立 .mdb 檔案的資料擷取。
  4. 若您使用 Tableau Prep,請在 Tableau Prep 中使用擷取本機複本作為輸入節點。

原因

已安裝 32 位元 Microsoft Access 驅動程式。
這篇文章是否解決了問題?