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。

适用于