DeployedDac.ComputerName Propriété
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Obtient le nom de l'ordinateur sur lequel le package DAC a été déployé.
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
Valeur de propriété
Valeur String qui spécifie le nom de l'ordinateur sur lequel le package DAC a été déployé.
- Attributs
Exemples
Vc #
System.Console.WriteLine(deployedDac.ComputerName);
VB
System.Console.WriteLine(deployedDac.ComputerName)
PowerShell
Write-Host $deployedDac.ComputerName
Remarques
Le package DAC peut être déployé sur plusieurs instances de SQL Server s’exécutant sur le même ordinateur.