Do I need to specify the SQL datatype when using SqlCommand?
3 answers
command.AddWithValue ("@Id", "1"); // Id is an int
command .AddWithValue ("@Id", '1'); // Id is an int
Do you guys know if there is a difference between "and" when we use SqlCommand internally? I have google for a long time, but I haven't seen anything about this problem.
+1
user47199
source
to share