Can I concurently access a database with embedded and with regular server?


This FAQ is about FB embedded on Windows, Linux embedded is not covered here.

Short answer:

If you mean it's one database and two applications then: NO
If you mean it's two databases and one application then: YES


Long:

Firebird embedded is actually a regular Firebird client with server capability. This means it can be used to connect directly to a database file (embedded) and simultaneosly establish a connection to a Firebird server somewhere on the network (or on local machine via 'localhost'). You can do this if you wish to copy data from embedded database to the 'real' server and vice versa.

Since each Firebird server holds a lock on the database file, you cannot use a single database file with embedded and access it with regular server at the same time. If you could it would lead to database corruption very quickly.


Do you find this FAQ incorrect or incomplete? Please e-mail us what needs to be changed. To ensure quality, each change is checked by our editors (and often tested on live Firebird databases), before it enters the main FAQ database. If you desire so, the changes will be credited to your name. To learn more, visit our add content page.



All contents are copyright © 2007-2024 FirebirdFAQ.org unless otherwise stated in the text.


Links   Firebird   News   FlameRobin   Powered by FB: Home Inventory   Euchre  
Add content   About  

Categories
 Newbies
 SQL
 Installation and setup
 Backup and restore
 Performance
 Security
 Connectivity and API
 HOWTOs
 Errors and error codes
 Miscellaneous