积极答复者
要求 API_CONFORMANCE >= SQL_OAC_LEVEL1

问题
答案
-
你好,
我认为错误原因是ODBC驱动程序与MFC数据库类不兼容。
通常,MFC 动态集(但并非只向前滚动的记录集)要求 ODBC 驱动程序具有 2 级 API 一致性。如果数据源的驱动程序符合 1 级 API 设置,您就仍可以使用可更新且只读的快照与只向前滚动的记录集,但不能使用动态集。自从 MFC 4.2 开始,ODBC 数据库类就是多线程的。若要利用此性能,就必须使用多线程的 ODBC 驱动程序。
Best Regards,
Jeanine Zhang
MSDN Community Support Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.
- 已标记为答案 幻灵小龙 2020年7月2日 5:43
全部回复
-
你好,
感谢您在MSDN论坛发帖提问。
>>要求 API_CONFORMANCE >= SQL_OAC_LEVEL1
该错误表示:ODBC驱动程序与MFC数据库类不兼容(需要API_CONFORMANCE> = SQL_OAC_LEVEL1)。
我认为您需要先通过控制面板->管理工具-> ODBC配置ODBC数据源,然后才能使用它。确保您的数据库具有正确的ODBC驱动程序。
Best Regards,
Jeanine Zhang
MSDN Community Support Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.
-
你好,
我认为错误原因是ODBC驱动程序与MFC数据库类不兼容。
通常,MFC 动态集(但并非只向前滚动的记录集)要求 ODBC 驱动程序具有 2 级 API 一致性。如果数据源的驱动程序符合 1 级 API 设置,您就仍可以使用可更新且只读的快照与只向前滚动的记录集,但不能使用动态集。自从 MFC 4.2 开始,ODBC 数据库类就是多线程的。若要利用此性能,就必须使用多线程的 ODBC 驱动程序。
Best Regards,
Jeanine Zhang
MSDN Community Support Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.
- 已标记为答案 幻灵小龙 2020年7月2日 5:43