SqlCommand cmd = conn.CreateCommand();
...
foreach (SqlParameter sqlParameter in sqlParameters)
{
cmd.Parameters.Add(sqlParameter );
}
The solution was to clear the parameter collection at the end of the method (in a finally block, actually):
cmd.Parameters.Clear();
No comments:
Post a Comment