Wednesday 1 August 2012

e.AffectedRows usually returns -1 (SqlDataSource_Inserting)

In your stored procedure, enable the counting:

SET NOCOUNT OFF;


It is ON by Default in the stored procedure template.

No comments:

Post a Comment