Export (0) Print
Expand All

SqlSmoObject.ExecuteNonQuery Method

Executes a batch in the context of the database where there are no results returned.

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

protected void ExecuteNonQuery(
	StringCollection queries,
	bool includeDbContext
)

Parameters

queries
Type: System.Collections.Specialized.StringCollection
The object value that contains more than one Transact-SQL command.
includeDbContext
Type: System.Boolean
If true, the statements are prefixed with setting the database context. If false, they are not.

Community Additions

Show:
© 2014 Microsoft