100分求助关于数据库表的同时访问问题。
我在使用paradox数据库的时候,是这样连接的
hrCnnDB=theApp.pCnnDB.CreateInstance(__uuidof(Connection));
theApp.pCnnDB->Open ("Provider=MSDASQL;dsn=ParaDox;uid=;pwd=;","","",0);
str1.Format("select 安装单位,详细地点,监控污染物名称,采样时间,当前浓度,排放标准 ,时间标志 from %s where 时间标志 >%s order by 时间标志 ","Data",Timestr);
sprintf(buf0,str1);
try
{
hrRec=pRecDB->Open(_variant_t(buf0),theApp.pCnnDB.GetInterfacePtr(),adOpenStatic,adLockReadOnly,adCmdText);
pDlg->ConnParadox=false;
}
catch (_com_error e) {}
现在有一个问题就是如果这个表通过database desktop打开的时候就不可以在用程序打开了,怎么样可以同时用程序打开那?谢谢