Export (0) Print
Expand All

DeployedDac.ComputerName Property

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

Namespace:  Microsoft.SqlServer.Management.Utility
Assembly:  Microsoft.SqlServer.Management.Utility (in Microsoft.SqlServer.Management.Utility.dll)

[SfcPropertyAttribute(SfcPropertyFlags.Data)]
public string ComputerName { get; }

Property Value

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

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

VC#

System.Console.WriteLine(deployedDac.ComputerName);

VB

System.Console.WriteLine(deployedDac.ComputerName)

PowerShell

Write-Host $deployedDac.ComputerName 

Community Additions

ADD
Show:
© 2014 Microsoft