DatabaseName Property

DeployedDac.DatabaseName Property

 

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

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

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

Property Value

Type: System.String

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

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

VC#

System.Console.WriteLine(deployedDac.DatabaseName);

VB

System.Console.WriteLine(deployedDac.DatabaseName)

PowerShell

Write-Host $deployedDac.DatabaseName 
Return to top
Show:
© 2016 Microsoft