Share via


DeployedDac.ComputerName Property

Definition

Gets the name of the computer on which the DAC package was deployed.

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

Property Value

A String value that specifies the name the computer on which the DAC package was deployed.

Attributes

Examples

VC#

System.Console.WriteLine(deployedDac.ComputerName);  

VB

System.Console.WriteLine(deployedDac.ComputerName)  

PowerShell

Write-Host $deployedDac.ComputerName   

Remarks

The DAC package may be deployed on more than one instance of SQL Server running on the same computer.

Applies to