Microsoft KB Archive/945842

= FIX: The setMaxRows method unexpectedly applies to DELETE statements when you use the SQL Server 2005 JDBC Driver version 1.2 to connect to a database =

Article ID: 945842

Article Last Modified on 12/11/2007

-

APPLIES TO


 * Microsoft SQL Server 2005 Java Database Connectivity Driver

-



SYMPTOMS
Consider the following scenario. You use the Microsoft SQL Server 2005 JDBC Driver version 1.2 to connect to a database. Then, you use the setMaxRows method to limit the number of rows that are affected by a query. In this scenario, this method unexpectedly applies to DELETE statements.

For example, you use the setMaxRows method to set the maximum number of rows to one. Then, you use a DELETE statement to delete some rows. However, only one row is deleted.

This problem does not occur when you use the SQL Server 2005 JDBC Driver version 1.1.



Hotfix information
A supported hotfix is now available from Microsoft. However, this hotfix is intended to correct only the problem that this article describes. Apply this hotfix only to systems that are experiencing this specific problem.

To resolve this problem, submit a request to Microsoft Online Customer Services to obtain the hotfix. To submit an online request to obtain the hotfix, visit the following Microsoft Web site:

http://go.microsoft.com/?linkid=6294451

Note If additional issues occur or any troubleshooting is required, you might have to create a separate service request. The usual support costs will apply to additional support questions and issues that do not qualify for this specific hotfix. To create a separate service request, visit the following Microsoft Web site:

http://support.microsoft.com/contactus/?ws=support

Prerequisites
To apply this hotfix, you must have the SQL Server 2005 JDBC Driver version 1.2 installed.

Restart requirement
You do not have to restart the computer after you apply this hotfix.

Hotfix replacement information
This hotfix does not replace any other hotfixes.

File information
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 item in Control Panel.



STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the &quot;Applies to&quot; section.



MORE INFORMATION
For more information about the setMaxRows method, visit the following Microsoft Web site:

http://msdn2.microsoft.com/en-us/library/ms378838.aspx

For more information about software update terminology, 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



The third-party products that this article discusses are manufactured by companies that are independent of Microsoft. Microsoft makes no warranty, implied or otherwise, about the performance or reliability of these products.

Keywords: kbexpertiseadvanced kbexpertiseinter kbbug kbfix kbhotfixserver kbqfe KB945842

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.