Datatype and Driver Information
The datetime datatype in SQL Server 2005 has the following range: 1/1/1753 to 12/31/9999. Microsoft SQL Server 2008 has added a new data type,
datetime2
, which has a date range of 0001/01/01 through 9999/12/31. Therefore, if you are using Microsoft SQL Server 2008, then you can manually change the generated SQL script (DDL) for your backing store, and replace any affected columns’ data type from
datetime
to
datetime2
.
Use the SQL Server JDBC driver,
sqljdbc4.jar
. You can download this driver from Microsoft site. For details, see Microsoft SQL documentation.