H
huangli_nj
Unregistered / Unconfirmed
GUEST, unregistred user!
Accesscon.ConnectionString:='Provider=MSDASQL.1;Persist Security Info=False;Extended Properties="DSN=MS Access Database;DBQ='
+openDialog1.FileName+';DefaultDir=F:;DriverId=1002;PageTimeout=0;FIL=MS Access;UID=admin;"'; //access 连接
//删除sql server 中ID和access中ID相同的记录
Accesscon.execute('delete from T_CHIEFDEPUTY in [odbc][ODBC;Driver=SQL Server;UID=sa;PWD=manager;Server=192.168.0.100;DataBase=jsfood;] where id in (select ID from T_CHIEFDEPUTY where sign='0' and up_sign='0'') ;为什么总是提示:无法从指定的数据表中删除
+openDialog1.FileName+';DefaultDir=F:;DriverId=1002;PageTimeout=0;FIL=MS Access;UID=admin;"'; //access 连接
//删除sql server 中ID和access中ID相同的记录
Accesscon.execute('delete from T_CHIEFDEPUTY in [odbc][ODBC;Driver=SQL Server;UID=sa;PWD=manager;Server=192.168.0.100;DataBase=jsfood;] where id in (select ID from T_CHIEFDEPUTY where sign='0' and up_sign='0'') ;为什么总是提示:无法从指定的数据表中删除