我用ado连接 sqlserver数据库时(m_Ptr为打开的数据库指针)
m_Recordset->Open("test",_variant_t((IDispatch*)theApp.m_Ptr,true),adOpenKeyset,adLockReadOnly,adCmdTableDirect);
(能读出数据)
m_Recoredset->Index="索引";
错误可是如果用m_Ptr打开access数据库 m_Recoredset->Index="索引"; 就正常
请问怎么解决
m_Recordset->Open("test",_variant_t((IDispatch*)theApp.m_Ptr,true),adOpenKeyset,adLockReadOnly,adCmdTableDirect);
(能读出数据)
m_Recoredset->Index="索引";
错误可是如果用m_Ptr打开access数据库 m_Recoredset->Index="索引"; 就正常
请问怎么解决
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货