The conversion of a char data type to a datetime data type

Theconversionofachardatatypetoadatetimedatatyperesultedinanout-of-rangedatetime程序移动到别的电脑上

The conversion of a char data type to a datetime data type resulted in an out-of-range datetime
程序移动到别的电脑上,数据查询只要是带时间判断的就出错
但是同样的SQL语句在SQL   查询分析器并没有错误
就是在程序中出错
??????


[解决办法]
程序中的DateTime类型 和数据库中的类型不匹配
先进行转换一下