SqlServerMigrationSqlGenerator.StatementBatch(String, Boolean) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
視需要將 sql 字串分成一或多個語句,並處理 T-SQL 公用程式語句。
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1026:DefaultParametersShouldNotBeUsed")]
protected void StatementBatch(string sqlBatch, bool suppressTransaction = false);
member this.StatementBatch : string * bool -> unit
Protected Sub StatementBatch (sqlBatch As String, Optional suppressTransaction As Boolean = false)
參數
- sqlBatch
- String
要分割成一個或多個要執行的語句的 SQL。
- suppressTransaction
- Boolean
取得或設定值,指出這個語句是否應該在用來進行移轉程式交易的交易範圍之外執行。 如果設定為 true,如果移轉程式失敗,將不會回復此作業。
- 屬性