Linguaggio

DeployedDac.ComputerName Proprietà

Definizione

Ottiene il nome del computer su cui è stato distribuito il pacchetto DAC.

public:
 property System::String ^ ComputerName { System::String ^ get(); };
[Microsoft.SqlServer.Management.Sdk.Sfc.Metadata.SfcProperty(Microsoft.SqlServer.Management.Sdk.Sfc.Metadata.SfcPropertyFlags.Data)]
public string ComputerName { get; }
[<Microsoft.SqlServer.Management.Sdk.Sfc.Metadata.SfcProperty(Microsoft.SqlServer.Management.Sdk.Sfc.Metadata.SfcPropertyFlags.Data)>]
member this.ComputerName : string
Public ReadOnly Property ComputerName As String

Valore della proprietà

Un String valore che specifica il nome del computer su cui è stato distribuito il pacchetto DAC.

Attributi

Esempio

VC#

System.Console.WriteLine(deployedDac.ComputerName);  

VB

System.Console.WriteLine(deployedDac.ComputerName)  

PowerShell

Write-Host $deployedDac.ComputerName   

Commenti

Il pacchetto DAC può essere distribuito su più di una istanza di SQL Server che gira sullo stesso computer.

Si applica a