Udostępnij przez


Właściwość JobStep.DatabaseName

Pobiera lub ustawia nazwę bazy danych, której wykonanie polecenia zadanie krok jest ograniczona.

Przestrzeń nazw:  Microsoft.SqlServer.Management.Smo.Agent
Zestaw:  Microsoft.SqlServer.Smo (w Microsoft.SqlServer.Smo.dll)

Składnia

'Deklaracja
<SfcPropertyAttribute(SfcPropertyFlags.Standalone)> _
Public Property DatabaseName As String
    Get
    Set
'Użycie
Dim instance As JobStep
Dim value As String

value = instance.DatabaseName

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

Wartość właściwości

Typ: System.String
A String wartość, która określa nazwę istniejącej bazy danych.

Uwagi

Each step of a Microsoft SQL Server Agent job can execute in a specified database.Ustawienie DatabaseName Właściwość JobStep obiektu nakazuje wykonywanie kroku odwołanie zadanie.