Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
ExecuteNonQuery Method (DbTransaction, String, Object[])

DatabaseExecuteNonQuery Method (DbTransaction, String, Object)

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.

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

Namespace:  Microsoft.Practices.EnterpriseLibrary.Data
Assembly:  Microsoft.Practices.EnterpriseLibrary.Data (in Microsoft.Practices.EnterpriseLibrary.Data.dll)

public virtual int ExecuteNonQuery(
	DbTransaction transaction,
	string storedProcedureName,
	params Object[] parameterValues
)

Parameters

transaction
Type: System.Data.CommonDbTransaction

The IDbTransaction to execute the command within.

storedProcedureName
Type: SystemString

The name of the stored procedure to execute.

parameterValues
Type: SystemObject

An array of parameters to pass to the stored procedure. The parameter values must be in call order as they appear in the stored procedure.

Return Value

The number of rows affected.

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.

Show:
© 2015 Microsoft