Loading

重新整理擷取或根據到 SQL Server 的即時連線打開檢視時發生錯誤「Login failed for user」

發佈日期: Aug 24, 2022
描述
透過即時資料來源連線打開檢視時,您可能會看到下列錯誤:
 
"Session Ended by Server (「伺服器已結束工作階段)
An unexpected error occurred. If you continue to receive this error please contact your Tableau Server Administrator.(發生意外錯誤。如果繼續收到此錯誤,請與 Tableau Server 管理員聯繫。)
Session ID: <string> (工作階段 ID:<字串>)
[Microsoft][SQL Server Native Client 11.0][SQLServer]Login failed for user <username>. ([Microsoft][SQL Server Native Client 11.0][SQLServer]使用者 <username> 登入失敗。)
Integrated authentication failed. (整合驗證失敗。)
create.xml (建立 .xml)
class DataSourceException (類別 DataSourceException)
Unable to connect to the server <server name>. Check that the server is running and that you have access privileges to the requested database.(無法連接到伺服器 <server name>。無法連接到伺服器。請檢查伺服器是否正在運行,並且您具有所請求的資料庫的訪問許可權。)
<Timestamp> (<時間戳>)
Would you like to reset the view?" (是否要重設檢視?」)

在 Tableau Server 上處理擷取時,您可能會注意到,連接到 Microsoft SQL Server 資料來源的活頁簿不執行重新整理或者在背景工作管理員檢視中看到下列錯誤訊息:
 
SQL Server database error 0x80040E4D: Login failed for user <username> (SQL Server 資料庫錯誤 0x80040E4D:用戶 <username> 登入失败)

注意: 錯誤中的 <username> 與發佈工作簿的用戶不同。
 

Cause

使用 Windows NT 身份驗證時,無法嵌入資料庫憑據,因為 Tableau Desktop 不會收到工作簿發佈者的實际用戶名或密碼。Windows 會改為提供一個临時身份驗證權杖,Tableau Server 無法保存該權杖。 
解決方案

選項 1:

允許 Tableau Server 以使用者帳戶權限執行以存取 SQL Server 資料庫。

選項 2:

編輯 SQL Server 連接並使用 Tableau Desktop 手動指定憑證。
發佈時,選擇內嵌資料庫認證。
注意: 此方法需要 SQL Server 設定混合模式驗證。有關詳細資訊,請參閱 Microsoft 文件的 變更伺服器驗證模式

選項 3:

設定 Tableau Server 和 SQL Server 以按照 SQL Server 模擬中所述使用模擬。 
知識文章編號

001473667

 
正在載入
Salesforce Help | Article