好
好人
Unregistered / Unconfirmed
GUEST, unregistred user!
线路不好,我上不来,今天来了。
Ms Sql Server数据更新问题
我向Sql server重复写数据(同一记录)时,系统报错
"Couldn't perform the edit because another uer chednged the record."
我不知怎样通知系统我已将数据读回并再次进行合法更新!!!
代码:
DataModule1->CatvDataBase->StartTransaction();
try{
//处理ToDay数据库
DataModule1->TODAYTable->Edit();
DataModule1->TODAYTableTIME_NOW1->AsString=Date();
DataModule1->TODAYTableARNO_COUNT->AsInteger=y_ARNOCou
ntTemp+1;
DataModule1->TODAYTable->Post();
DataModule1->CatvDataBase->Commit();
}
catch(...)
{
DataModule1->CatvDataBase->Rollback();
}
Ms Sql Server数据更新问题
我向Sql server重复写数据(同一记录)时,系统报错
"Couldn't perform the edit because another uer chednged the record."
我不知怎样通知系统我已将数据读回并再次进行合法更新!!!
代码:
DataModule1->CatvDataBase->StartTransaction();
try{
//处理ToDay数据库
DataModule1->TODAYTable->Edit();
DataModule1->TODAYTableTIME_NOW1->AsString=Date();
DataModule1->TODAYTableARNO_COUNT->AsInteger=y_ARNOCou
ntTemp+1;
DataModule1->TODAYTable->Post();
DataModule1->CatvDataBase->Commit();
}
catch(...)
{
DataModule1->CatvDataBase->Rollback();
}