DeployedDac.ComputerName Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.