Compartir a través de


DeployedDac.DatabaseName Propiedad

Gets the name of the database that was deployed from the DAC package.

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 DatabaseName As String 
    Get
'Uso
Dim instance As DeployedDac 
Dim value As String 

value = instance.DatabaseName
[SfcPropertyAttribute(SfcPropertyFlags.Data)]
public string DatabaseName { get; }
[SfcPropertyAttribute(SfcPropertyFlags::Data)]
public:
property String^ DatabaseName {
    String^ get ();
}
[<SfcPropertyAttribute(SfcPropertyFlags.Data)>]
member DatabaseName : string
function get DatabaseName () : String

Valor de la propiedad

Tipo: System.String
A String value that specifies the name of the database deployed from the DAC package.

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.DatabaseName);

VB

System.Console.WriteLine(deployedDac.DatabaseName)

PowerShell

Write-Host $deployedDac.DatabaseName 

Vea también

Referencia

DeployedDac Clase

Espacio de nombres Microsoft.SqlServer.Management.Utility