Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

Database.ExecuteNonQuery Method (String, Object[])

Executes the storedProcedureName using the given parameterValues 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(
	string storedProcedureName,
	params Object[] parameterValues


Type: System.String

The name of the stored procedure to execute.

Type: System.Object []

An array of paramters 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

© 2015 Microsoft