Data.Database.StartTransaction;和Data.Database.Commit;还有Data.Database.Rollback;
在使用时错误提示:[Error] cgjh.pas(560): Undeclared identifier: 'Database'
这是为什么呢?
D7,MSSQL,ADOQUERY连接数据库.
请高手指点?
在使用时错误提示:[Error] cgjh.pas(560): Undeclared identifier: 'Database'
这是为什么呢?
D7,MSSQL,ADOQUERY连接数据库.
请高手指点?
要不你直接用ADOCONNECTION.StartTransaction、ADOCONNECTION.Commit、ADOCONNECTION.Rollback吧。
ADOQuery1.Connection.CommitTrans;
ADOQuery1.Connection.RollbackTrans;