Question

Is it safe to update DBF files using Advantage Local Server .Net provider whilst a FoxPro application is running that may also be accessing the DBF files? i.e. does Advantage take care of row locking?

Was it helpful?

Solution

Advantage can be used for concurrent access between a .NET application and a VFP application using our compatibility locking. When in compatibility locking mode Advantage accesses the tables using the same mechanism as VFP. Therefore row locking will be handled by Advantage.

The Advantage .NET data provider also contains an additional object called AdsExtendedDataReader which provides more ISAM functionality. You can use an AdsExtendedDataReader to explicitly lock records. You can get more information here.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top