TargetServer.TimeZoneAdjustment プロパティ

対象サーバーのローカル時刻の午前 0 時と、協定世界時 (グリニッジ標準時) の午前 0 時との時間差 (分単位) を取得します。

名前空間:  Microsoft.SqlServer.Management.Smo.Agent
アセンブリ:  Microsoft.SqlServer.Smo (Microsoft.SqlServer.Smo.dll)

構文

'宣言
<SfcPropertyAttribute(SfcPropertyFlags.Standalone)> _
Public ReadOnly Property TimeZoneAdjustment As Integer 
    Get
'使用
Dim instance As TargetServer 
Dim value As Integer 

value = instance.TimeZoneAdjustment
[SfcPropertyAttribute(SfcPropertyFlags.Standalone)]
public int TimeZoneAdjustment { get; }
[SfcPropertyAttribute(SfcPropertyFlags::Standalone)]
public:
property int TimeZoneAdjustment {
    int get ();
}
[<SfcPropertyAttribute(SfcPropertyFlags.Standalone)>]
member TimeZoneAdjustment : int
function get TimeZoneAdjustment () : int

プロパティ値

型: System.Int32
参照先の対象サーバーの時刻とグリニッジ標準時との時間差 (分単位) を示す Int32 値です。

説明

マスター サーバーと対象サーバーが別のタイム ゾーンにある場合に、マルチサーバー管理タスクのスケジュールを正しく設定するには、LocalTime プロパティと TimeZoneAdjustment プロパティを使用します。

使用例

SQL Server エージェントでの自動管理タスクのスケジュール設定

関連項目

参照

TargetServer クラス

Microsoft.SqlServer.Management.Smo.Agent 名前空間

その他の技術情報

管理タスクの自動化 (SQL Server エージェント)

sp_help_targetserver (Transact-SQL)