Tuesday, October 14, 2008

SQL Server: The SqlParameter with ParameterName is already contained by another SqlParameterCollection

It happens when you try to re-use the SqlCommand object. The solution is that make sure use command.Parameters.Clear() at the end.

No comments: