目前我们正在用ODBC API 生成一个数据库应用类计划使用SQLSetPos 实现对数据记录集进行增、删、更新
 
可总是出错“[Microsoft][ODBC 驱动程序管理器] 无效的游标状态”
error state 是 24000先后使用access、foxpro、sql server 做数据源都不行怀疑是前面相应的句柄属性没有设置正确,
具体怎么设有人知道么?目前正在赶工,如果能提供相应的示例代码就更好了

解决方案 »

  1.   

    24000 
    Invalid cursor state The StatementHandle was in an executed state but no result set was associated with the StatementHandle.
    (DM) A cursor was open on the StatementHandle but SQLFetch or SQLFetchScroll had not been called.A cursor was open on the StatementHandle and SQLFetch or SQLFetchScroll had been called, but the cursor was positioned before the start of the result set or after the end of the result set.The argument Operation was SQL_DELETE, SQL_REFRESH, or SQL_UPDATE, and the cursor was positioned before the start of the result set or after the end of the result set.
      

  2.   

    谢谢了先, 
    以上应该是ODBC SDK的帮助里的错误描述把
    我已经看了n遍了,还有MS的ODBC 3.0程序员参考手册和SDK指南
    可就是设不对,郁闷死了
    有谁成功的用过吗?在线等ing~~~~~~~~~~~