FIX: The client connection may end when you insert an out-of-range datetime value in a server by using the SQL Server 2000 Driver for JDBC (894557)
The information in this article applies to:
- Microsoft SQL Server 2000 Driver for JDBC
SYMPTOMSWhen you insert an out-of-range datetime value in a Microsoft SQL
Server-based server by using the Microsoft SQL Server 2000 Driver for JDBC, the server may receive the following error message and end the client connection: 2004-08-12 15:56:47.77 spid51 Error: 17805, Severity: 20,
State: 3 2004-08-12 15:56:47.77 spid51 Invalid buffer received from
client. For example, the date "March 15, 2002" may be represented
as "2/03/15". This date will be interpreted as out-of-range according to the "yyyy/MM/dd" pattern. When the out-of-range error is detected by the JDBC driver, the
client application may receive an exception that is similar to the following: java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for
JDBC]The year, 2, is outside the range allowed by the SQL Server. at
com.microsoft.jdbc.base.BaseExceptions.createException(Unknown Source) at
com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source) at
com.microsoft.jdbc.sqlserver.tds.TDSDateTime.<init>(Unknown Source)
at com.microsoft.jdbc.sqlserver.tds.TDSRPCParameter.write(Unknown Source)
at com.microsoft.jdbc.sqlserver.tds.TDSRPCRequest.submitRequest(Unknown
Source) at
com.microsoft.jdbc.sqlserver.SQLServerImplStatement.execute(Unknown Source)
at com.microsoft.jdbc.base.BaseStatement.commonExecute(Unknown Source)
at com.microsoft.jdbc.base.BaseStatement.executeUpdateInternal(Unknown
Source) at
com.microsoft.jdbc.base.BasePreparedStatement.executeUpdate(Unknown Source)
at Test.main(Test.java:40) Subsequent tries to use the same connection may cause the following exception: java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for
JDBC]Connection reset at
com.microsoft.jdbc.base.BaseExceptions.createException(Unknown Source) at
com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source) at
com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source) at
com.microsoft.jdbc.sqlserver.tds.TDSRequest.processReply(Unknown Source)
at
com.microsoft.jdbc.sqlserver.SQLServerImplStatement.getNextResultType(Unknown
Source) at
com.microsoft.jdbc.base.BaseStatement.commonTransitionToState(Unknown Source)
at com.microsoft.jdbc.base.BaseStatement.postImplExecute(Unknown Source)
at com.microsoft.jdbc.base.BasePreparedStatement.postImplExecute(Unknown
Source) at com.microsoft.jdbc.base.BaseStatement.commonExecute(Unknown
Source) at
com.microsoft.jdbc.base.BaseStatement.executeQueryInternal(Unknown Source)
at com.microsoft.jdbc.base.BasePreparedStatement.executeQuery(Unknown
Source) at Test.main(Test.java:58) RESOLUTIONA supported hotfix is now available from Microsoft, but it is only intended to correct the problem that is described in this article. Only apply it to systems that are experiencing this specific problem. This hotfix may receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next SQL Server 2000 Driver for JDBC service pack that contains this hotfix. To resolve this problem immediately, contact Microsoft Product Support Services to obtain the hotfix. For a complete list of Microsoft Product Support Services telephone numbers and information about support costs, visit the following Microsoft Web site: Note In special cases, charges that are ordinarily incurred for support calls may be canceled if a Microsoft Support Professional determines that a specific update will resolve your problem. The usual support costs will apply to additional support questions and issues that do not qualify for the specific update in question.
The English version of this hotfix has the file attributes (or later file attributes) that are listed in the following table. The dates and times for these files are listed in Coordinated Universal Time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time tool in Control Panel. Date Time Version Size File name
-----------------------------------------------------
1-Oct-2004 12:04 2.2.0043 286,953 Msbase.jar
1-Oct-2004 12:04 2.2.0043 67,167 Mssqlserver.jar
1-Oct-2004 12:04 2.2.0043 59,072 Msutil.jar REFERENCES
For more information about JDBC, click the following article number to view the article in the Microsoft Knowledge Base:
313100
How to get started with Microsoft JDBC
For more information, click the following article number to view the article in the Microsoft Knowledge Base:
824684
Description of the standard terminology that is used to describe Microsoft software updates
Modification Type: | Minor | Last Reviewed: | 10/7/2005 |
---|
Keywords: | kbBug kbDatabase kbProgramming kbJDBC kberrmsg kbQFE kbfix KB894557 kbAudDeveloper |
---|
|