ISmoScriptWriter.ScriptContext(String, Urn) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
會寫一個字串來指定要用腳本化的資料庫。 資料庫上下文相當於資料庫腳本中的 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.