When I call a stored procedure from .NET code, I could you this to specify a param value:
sqlCommand.Parameters.AddWithValue("@param1", myvalue1);
If I am calling a SQL Server stored procedure, is there ever a need to specify other optional SqlParameter property values such as Length, datatype, precision, etc, when I am calling a SQL Server stored procedure?
When is it necesary?