フォーマットがあり26062012
ます。datetime
この形式をSQL Server 2008 に変換したい。
私のコードは次のとおりです。
else if (str.equalsIgnoreCase("DATETIME")){
sb.append("CONVERT(Datetime,'").append(strCell).append("',102)").append(',');
}
エラー:
com.microsoft.sqlserver.jdbc.SQLServerException: The conversion of a
varchar data type to a datetime data type resulted in an out-of-range value.