Share via


IScriptingOptions.ScriptUseDatabase Property

Gets a value indicating whether the script adds the use database statement to create database objects in the context of the current object explorer database.

Namespace:  Microsoft.SqlServer.Management.UI.VSIntegration
Assembly:  SqlWorkbench.Interfaces (in SqlWorkbench.Interfaces.dll)

Syntax

'Declaration
ReadOnly Property ScriptUseDatabase As Boolean
    Get
'Usage
Dim instance As IScriptingOptions
Dim value As Boolean

value = instance.ScriptUseDatabase
bool ScriptUseDatabase { get; }
property bool ScriptUseDatabase {
    bool get ();
}
abstract ScriptUseDatabase : bool
function get ScriptUseDatabase () : boolean

Property Value

Type: System.Boolean
true if the use database statement is added in the script; otherwise, false.