M
me
Why am i not getting a match with this search:
string sql = "select ... from ... where somedate = @fd";
cmd.CommandText = sql;
cmd.Parameters.Add(new SqlParameter("@fd",System.Data.SqlDbType.DateTime));
cmd.Parameters["@fd"].Value = somedatetimevalue;
cmd.Prepare();
cmd.ExecuteNonQuery();
I know the datetime value I use exists in the database (sql server).
If server and client does not use the same locale, does prepare()
take this into account?
string sql = "select ... from ... where somedate = @fd";
cmd.CommandText = sql;
cmd.Parameters.Add(new SqlParameter("@fd",System.Data.SqlDbType.DateTime));
cmd.Parameters["@fd"].Value = somedatetimevalue;
cmd.Prepare();
cmd.ExecuteNonQuery();
I know the datetime value I use exists in the database (sql server).
If server and client does not use the same locale, does prepare()
take this into account?