To open an ADO dataset in batch update mode, it must meet these criteria:
with ADODataSet1 do begin CursorLocation := clUseClient; CursorType := ctStatic; LockType := ltBatchOptimistic; CommandType := cmdText; CommandText := 'SELECT * FROM Employee'; Open; end;
ADODataSet1->CursorLocation = clUseClient; ADODataSet1->CursorType = ctStatic; ADODataSet1->LockType = ltBatchOptimistic; ADODataSet1->CommandType = cmdText; ADODataSet1->CommandText = "SELECT * FROM Employee";
After a dataset has been opened in batch update mode, all changes to the data are cached rather than applied directly to the base tables.
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
|
What do you think about this topic? Send feedback!
|