Admin.GetDatabaseTimeout メソッド
秒単位で、Project Server のコア データベースの SQL のタイムアウト設定を読み取ります。
名前空間: WebSvcAdmin
アセンブリ: ProjectServerServices (ProjectServerServices.dll 内)
構文
'宣言
<SoapDocumentMethodAttribute("https://schemas.microsoft.com/office/project/server/webservices/Admin/GetDatabaseTimeout", RequestNamespace := "https://schemas.microsoft.com/office/project/server/webservices/Admin/", _
ResponseNamespace := "https://schemas.microsoft.com/office/project/server/webservices/Admin/", _
Use := SoapBindingUse.Literal, ParameterStyle := SoapParameterStyle.Wrapped)> _
Public Function GetDatabaseTimeout ( _
timeoutType As DatabaseTimeoutType _
) As Integer
'使用
Dim instance As Admin
Dim timeoutType As DatabaseTimeoutType
Dim returnValue As Integer
returnValue = instance.GetDatabaseTimeout(timeoutType)
[SoapDocumentMethodAttribute("https://schemas.microsoft.com/office/project/server/webservices/Admin/GetDatabaseTimeout", RequestNamespace = "https://schemas.microsoft.com/office/project/server/webservices/Admin/",
ResponseNamespace = "https://schemas.microsoft.com/office/project/server/webservices/Admin/",
Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
public int GetDatabaseTimeout(
DatabaseTimeoutType timeoutType
)
パラメーター
timeoutType
型: WebSvcAdmin.DatabaseTimeoutTypeProject Server で利用可能な唯一の値は、 Core定数 (値 = 0)、中核となるデータベースを指定します。
戻り値
型: System.Int32
コア データベースのタイムアウト値。
注釈
ヒント
一部の Project Server の展開でタイムアウトのデフォルト データベースもはありません。Project Server ジョブが SQL タイムアウト エラーのため失敗した場合は、管理者ことができます、 SetDatabaseTimeoutメソッドを使用して、データベースのタイムアウト設定を大きくし、ジョブを再試行してください。
既定値および最小値は、30 秒です。最大値は 2147483647 秒 (15 年)、 Int32の最大は。
プロジェクト キューまたはタイムシート キューの SQL コマンドのタイムアウトを読み取り、 ReadQueueConfigurationメソッドを使用またはProject Web App (https://ServerName/ProjectServerName/_layouts/pwa/Admin/queuesettings.aspx) で、[キューの設定] ページを使用できます。
プロジェクト サーバーのアクセス許可
権限 |
説明 |
---|---|
Project Server の構成情報を管理することができます。グローバル アクセス権。 |
例
次のWindows PowerShellスクリプトを使用するには、という名前で、たとえば、 Get DatabaseTimeout.ps1を、スクリプトを保存します。管理者は、 Microsoft SharePoint 2010 プロジェクトフォルダー内の [スタート] メニューの)、 SharePoint 2010 管理シェルを実行、取得 DatabaseTimeout.ps1、ファイルを保存したディレクトリに移動し、次のコマンドを入力: .\Get-DatabaseTimeout
##############################################################################
## Get-DatabaseTimeout
## Uses the Admin web service of the PSI to call the GetDatabaseTimeout method.
## The script user must have Project Server administrator permissions.
## To run on your Project Server installation, change the $pwaUrl value.
################################################################################
$pwaUrl = "https://ServerName/ProjectServerName"
$svcAdminUrl = $pwaUrl + "/_vti_bin/PSI/Admin.asmx?wsdl"
$c = get-credential
# Create a proxy for the Admin web service.
$svcAdminProxy = New-WebServiceProxy -uri $svcAdminUrl -credential $c
$secTimeout = $svcAdminProxy.GetDatabaseTimeout(0)
Write-Host "Database timeout for Project Server: $secTimeout seconds"