Database.ExecuteNonQuery Method

Include Protected Members
Include Inherited Members

Retired Content

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

Overload List

  Name Description
Public method ExecuteNonQuery(DbCommand)

Executes the command and returns the number of rows affected.

Public method ExecuteNonQuery(CommandType, String)

Executes the commandText interpreted as specified by the commandType and returns the number of rows affected.

Public method ExecuteNonQuery(DbCommand, DbTransaction)

Executes the command within the given transaction, and returns the number of rows affected.

Public method ExecuteNonQuery(String, array<Object>)

Executes the storedProcedureName using the given parameterValues and returns the number of rows affected.

Public method ExecuteNonQuery(DbTransaction, CommandType, String)

Executes the commandText interpreted as specified by the commandType as part of the given transaction and returns the number of rows affected.

Public method ExecuteNonQuery(DbTransaction, String, array<Object>)

Executes the storedProcedureName using the given parameterValues within a transaction and returns the number of rows affected.

See Also

Database Class

Database Members

Microsoft.Practices.EnterpriseLibrary.Data Namespace

Retired Content

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.