Share via


ISmoScriptWriter.ScriptContext(String, Urn) Method

Definition

Writes a string that specifies the database being scripted. The database context is the equivalent of the USE [Database] segment of the database script.

public void ScriptContext(string databaseContext, Microsoft.SqlServer.Management.Sdk.Sfc.Urn obj);
abstract member ScriptContext : string * Microsoft.SqlServer.Management.Sdk.Sfc.Urn -> unit
Public Sub ScriptContext (databaseContext As String, obj As Urn)

Parameters

databaseContext
String

String that specifies the database to script.

obj
Urn

The T:Microsoft.SqlServer.Management.Sdk.Sfc.Urn to script.

Applies to