次の方法で共有


JobStep.Server プロパティ

ジョブ ステップが実行されるサーバーの名前を取得します。値の設定も可能です。

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

構文

'宣言
<SfcPropertyAttribute(SfcPropertyFlags.Standalone)> _
Public Property Server As String 
    Get 
    Set
'使用
Dim instance As JobStep 
Dim value As String 

value = instance.Server

instance.Server = value
[SfcPropertyAttribute(SfcPropertyFlags.Standalone)]
public string Server { get; set; }
[SfcPropertyAttribute(SfcPropertyFlags::Standalone)]
public:
property String^ Server {
    String^ get ();
    void set (String^ value);
}
[<SfcPropertyAttribute(SfcPropertyFlags.Standalone)>]
member Server : string with get, set
function get Server () : String 
function set Server (value : String)

プロパティ値

型: System.String
サーバー名を示す String 値です。

使用例

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

関連項目

参照

JobStep クラス

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

その他の技術情報

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

sp_help_jobstep (Transact-SQL)