···冰天雪地,赤裸360度跪求救···
环境: C++ ADO连SQL Server2005!
BeginTransaction();开始事务
m_AdoCommand.SetConnection(this);
m_AdoCommand.SetCommandText(procName.c_str());
m_AdoCommand.SetCommandType(adCmdStoredProc);
_RecordsetPtr pSet = m_AdoCommand.Execute(); //执行存储过程,获取记录集
pSet Is OK
Commit(); //提交事务
pSet Error
为什么在提交事务之后,记录集就没了,有什么办法能够保存下来????