DatabaseLocation
The location of the Btrieve database files.
Data Type
string
Default Value
""
Remarks
Btrieve specifies the database via the filepath containing the database files rather than simply the name of the database.
Scenario 1: Only DatabaseLocation Set
When DatabaseLocation is set and Database is not, the database name used by the adapter is the last element of the path supplied in the DatabaseLocation property.
For example, suppose you set:
DatabaseLocation=C:\ProgramData\Actian\PSQL\Demodata
In this case, "Demodata" is the database name used by the adapter and the adapter searches C:\ProgramData\Actian\PSQL for the database files.
Scenario 2: Both Database and DatabaseLocation Set
When both Database and DatabaseLocation are set, explicitly supply the database name (with no directory path prepended) in Database.
For example, suppose you set:
Database=Demodata;DatabaseLocation=C:\ProgramData\Actian\PSQL\Demodata2
In this case, "Demodata" is the database name used by the adapter and the adapter searches C:\ProgramData\Actian\PSQL for the database files.