SQL 2005 and ADO cursors automatically closed after commit



We have a problem with cursor's being closed after a transaction commit or
abort.

We are using VB 6.0, ADO, with SQL Server 2005.

We do the following after opening a connection:

SET CURSOR_CLOSE_ON_COMMIT OFF

We set our recordsets with the following:

..CursorLocation = adUseServer

..CursorType = adOpenDynamic

..Properties("Preserve on Abort") = True

..Properties("Preserve on Commit") = True



This prevented open cursors from being closed when commiting or aborting
transactions.

This worked perfectly in SQL 2000 but now we are using SQL 2005 and the
settings don't seem to have any effect anymore.

With SQL 2005, the cursors are closed automatically after a commit or abort.


.



Relevant Pages

  • Re: Opinions on approach, please...
    ... Code conversion is much more tricky. ... to update more than 32k records without a commit in-between. ... I advise you to do cursor definitions on working storage). ... I don't want to see ANY SQL code in them. ...
    (comp.lang.cobol)
  • Re: Straight SQL always put perform PL/SQL?
    ... If you cannot do it in a single SQL Statement, ... end loop; ... analyze table test1 compute statistics; ...
    (comp.databases.oracle.server)
  • Re: Can I Create Materialized View with REFRESH FAST ON COMMIT & UNION ?
    ... We have requirement to create MV with REFRESH FAST ON COMMIT & UNION. ... CREATE MATERIALIZED VIEW LOG ON TRANS1 ... SQL> create materialized view log on trans1 WITH ROWID; ...
    (comp.databases.oracle.server)
  • Do UDFs slow down Stored Proc execution?
    ... I have a client/server checkwriter (VB/SQL Server 2000) that seem to be ... it was written without UDFs. ... But along came SQL 2000 and I ... Admittedly the data commit procedure is quite involved, ...
    (microsoft.public.sqlserver.programming)
  • Re: on delete set null
    ... > sorgen ein COMMIT oder ROLLBACK. ... > Vermissen ich tu ich auf Anhieb etwas wie ParameterMarker, NamedParameter, ... > Und ein Parameterisierter SQL Befehl nutzt beim SQL Client sowie ... > INSERT INTO T VALUES) ...
    (microsoft.public.de.sqlserver)