PRB: Catastrophic Error Occurs Referencing ADO Recordset.

来源:互联网 发布:sql怎么建立数据库 编辑:程序博客网 时间:2024/05/01 13:02

MS SQL Server 使用时的一个小问题,事务提交会破坏该数据库连接上的记录集。场景如下:

1. 执行一个SQL 查询,产生一个记录集。

2. 在同一个数据库连接上执行一个transact的commit或者rollback操作

3. 去查询第一步的记录集。ADO会报错:“Using ADO 2.6 and later, the error is Run-time error '-2147418113(8000ffff)': ITransaction::Commit or ITransaction::Abort was called, and the object is in a zombie state. ”

具体参看MSDN文章:http://support.microsoft.com/default.aspx?scid=kb;en-us;187942

原创粉丝点击