Relatively old post, but replying just in case if some body reach to this situation.
Checking the field type may help with the issue. Example, if a datetime field is used in the char variable, then DB server need to do the conversion from string to date time. So watch out for the column DB type.