DOCUMENT:Q259195 08-DEC-2000 [sna] TITLE :Cannot Control COMMIT or ROLLBACK Commands Using ADO with DB2 an PRODUCT :Microsoft SNA Server PROD/VER:WINDOWS:4.0 SP3 OPER/SYS: KEYWORDS:kbSNA400sp4fix kbSNA400PreSP4fix ====================================================================== ------------------------------------------------------------------------------- The information in this article applies to: - Microsoft SNA Server, version 4.0 SP3 ------------------------------------------------------------------------------- SYMPTOMS ======== When you use ADO with the OLE/DB Provider for DB2 and stored procedures, it is not possible to control the COMMIT or ROLLBACK commands in a transaction. For example, the following code does not work to commit or rollback a transaction: Set objConn = New ADODB.Connection objConn.BeginTrans ; Call stored procedures here If OK then objConn.CommitTrans ELSE objConn.RollbackTrans End IF Set objConn = Nothing NOTE: The OLE/DB for DB2 Provider support for stored procedures was added in Microsoft SNA Server 4.0 Service Pack 3. CAUSE ===== The OLE/DB Provider for DB2 is incorrectly performing the commitment of the transaction. RESOLUTION ========== To resolve this problem, obtain the latest service pack for SNA Server 4.0. For additional information, click the following article number to view the article in the Microsoft Knowledge Base: Q215838 How to Obtain the Latest SNA Server Version 4.0 Service Pack STATUS ====== Microsoft has confirmed that this is a problem in Microsoft SNA Server 4.0 SP3. This problem was first corrected in SNA Server 4.0 Service Pack 4. Additional query words: ====================================================================== Keywords : kbSNA400sp4fix kbSNA400PreSP4fix Technology : kbAudDeveloper kbSNAServSearch kbSNAServ400SP3 Version : WINDOWS:4.0 SP3 Issue type : kbbug Solution Type : kbfix ============================================================================= THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY. Copyright Microsoft Corporation 2000.