語言

ISmoScriptWriter.ScriptContext(String, Urn) 方法

定義

會寫一個字串來指定要用腳本化的資料庫。 資料庫上下文相當於資料庫腳本中的 USE [Database] 段。

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)

參數

databaseContext
String

用來指定資料庫到腳本的字串。

obj
Urn

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

適用於