I read that .Add is better than .AddWithValue, yet I also read that.Add has been depreciated.
I use the following AddWithValue. Is there anything wrong with it?
string strColumnToSaveName = "test";
object objValueToSave = 1;
objCommand.Parameters.AddWithValue((strColumnToSaveName), SqlDbType.Int).Value = objValueToSave;