2010-03-06 26 views
0

我發現下面的ULS日誌條目,定時器作業(OWSTimer.EXE)正在造成這種情況,但想知道定時器作業的名稱,我該如何實現? (不啓用詳細日誌記錄)SqlException&計時器作業

System.Data.SqlClient.SqlException: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections.

SqlError: 'A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: TCP Provider, error: 0 - The wait operation timed out.)' Source: '.Net SqlClient Data Provider' Number: 258 State: 0 Class: 20 Procedure: '' LineNumber: 0 Server: ''

+0

什麼版本的SharePoint?你今天有什麼樣的日誌記錄? – Jeff

回答

0

你可以嘗試使用Wireshark之​​類的工具,看看正在發生什麼樣的網絡流量,並根據該賬戶的請求,並正在取得哪些SQL框。我懷疑這個錯誤被觸發下列方式(第2級不太可能的,那麼可能出現的問題)之一:

  • 不太可能:一個安全問題,SQL不可直接調用下所作的帳戶,可能來自使用它自己的(非共享點)數據庫的計時器工作。
  • 不可能:由timerjob使用的(非共享點)數據庫不再存在,或者它運行的sql框無法訪問。
  • 很可能,webapp正在使用本地服務或網絡服務帳戶(或任何其他本地用戶)運行。綁定到該webapp的timerjobs中的代碼可能會使用該帳戶。如果它是本地帳戶,如果您尚未授予對sql計算機上該帳戶的訪問權限,它將無法訪問另一臺計算機上的數據庫。並且從機器授予本地帳戶訪問機器不是你通常會做的(我希望)。