SqlParameter foo = bar.Parameters.AddWithValue("@Baz", qux);
...is copacetic while this isn't...
SqlParameter foo = bar.Parameters.Add("@Baz", SqlDbType.NVarChar, 42); foo.Value = qux;
No comments:
Post a Comment