共用方式為


SqlSmoObject.ExecuteNonQuery 方法

Executes a batch of statements that does not return a result set.

命名空間:  Microsoft.SqlServer.Management.Smo
組件:  Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)

語法

'宣告
Protected Sub ExecuteNonQuery ( _
    queries As StringCollection, _
    includeDbContext As Boolean _
)
'用途
Dim queries As StringCollection 
Dim includeDbContext As Boolean 

Me.ExecuteNonQuery(queries, includeDbContext)
protected void ExecuteNonQuery(
    StringCollection queries,
    bool includeDbContext
)
protected:
void ExecuteNonQuery(
    StringCollection^ queries, 
    bool includeDbContext
)
member ExecuteNonQuery : 
        queries:StringCollection * 
        includeDbContext:bool -> unit
protected function ExecuteNonQuery(
    queries : StringCollection, 
    includeDbContext : boolean
)

參數

  • includeDbContext
    型別:System.Boolean
    A Boolean value that indicates whether to include the database context.

請參閱

參考

SqlSmoObject 類別

Microsoft.SqlServer.Management.Smo 命名空間