Nota:
El acceso a esta página requiere autorización. Puede intentar iniciar sesión o cambiar directorios.
El acceso a esta página requiere autorización. Puede intentar cambiar los directorios.
Gets the name of the computer on which the DAC package was deployed.
Espacio de nombres: Microsoft.SqlServer.Management.Utility
Ensamblado: Microsoft.SqlServer.Management.Utility (en Microsoft.SqlServer.Management.Utility.dll)
Sintaxis
'Declaración
<SfcPropertyAttribute(SfcPropertyFlags.Data)> _
Public ReadOnly Property ComputerName As String
Get
'Uso
Dim instance As DeployedDac
Dim value As String
value = instance.ComputerName
[SfcPropertyAttribute(SfcPropertyFlags.Data)]
public string ComputerName { get; }
[SfcPropertyAttribute(SfcPropertyFlags::Data)]
public:
property String^ ComputerName {
String^ get ();
}
[<SfcPropertyAttribute(SfcPropertyFlags.Data)>]
member ComputerName : string
function get ComputerName () : String
Valor de la propiedad
Tipo: System.String
A String value that specifies the name the computer on which the DAC package was deployed.
Comentarios
The DAC package may be deployed on more than one instance of SQL Server running on the same computer.
Ejemplos
VC#
System.Console.WriteLine(deployedDac.ComputerName);
VB
System.Console.WriteLine(deployedDac.ComputerName)
PowerShell
Write-Host $deployedDac.ComputerName