我正在努力将数据从excel导入到sql server。我在sql server中插入日期和日期时间值时遇到问题。它向我显示了这个错误:
[System.Data.SqlClient.SqlException] = {"The conversion of a char data type to a datetime data type resulted in an out-of-range datetime value.\r\nThe statement has been terminated."}
Excel工作表中的日期和日期时间格式采用以下格式:
Date DateTime
2011-04-26 2011-04-26 13:30
如何将这两个值导入数据库?