Udostępnij za pośrednictwem


Właściwość ID

Gets the ID value for the instance of Microsoft SQL Server that is the target server.

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

Syntax

'Deklaracja
<SfcPropertyAttribute(SfcPropertyFlags.Standalone)> _
Public ReadOnly Property ID As Integer
    Get
'Użycie
Dim instance As TargetServer
Dim value As Integer

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

Wartość właściwości

Typ: System. . :: . .Int32
Int32 Wartość, która określa wartość Identyfikatora wystąpienie SQL Server jest serwer docelowy.

Uwagi

Definicja SQL Server składniki bazy danych i SQL Server składniki agenta są rejestrowane w SQL Server tabele systemowe.W tabela systemowa jedna kolumna może być wyznaczony jako identyfikator.Identyfikator jest wartością jest unikatowy dla wszystkich wierszy w tabela.Identyfikatory są przypisywane przez SQL Server.