The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.
|
 |
|
Dev Shed Forums
> Databases
> Firebird SQL Development
|
firebird and delphi
Discuss firebird and delphi in the Firebird SQL Development forum on Dev Shed. firebird and delphi Firebird SQL Development forum discussing administration, Firebird SQL syntax, or other Firebird SQL-related topics. Firebird is the evolution of Borland's Interbase product.
|
|
 |
|
|
|
|

Dev Shed Forums Sponsor:
|
|
|

February 19th, 2004, 09:26 AM
|
|
Contributing User
|
|
Join Date: Feb 2004
Posts: 47
Time spent in forums: 1 h 35 m 11 sec
Reputation Power: 10
|
|
|
firebird and delphi
Hi
We are planning on developing a small application, to be installed on several un-networked laptops. Thus we need an easily deployable database solution, which preferrably is file-based (such as access and dbisam), or requires minimal system changes and installation. (The program should be as "stand-alone" as possible).
I have been told that using firebird i can create a database contained in a .dll file which i can connect to through the delphi application.
do i make sense ???
and is this possible ????
|

February 20th, 2004, 02:45 AM
|
 |
Bug Hunter
|
|
Join Date: May 2003
Location: Transylvania (Romania)
|
|
Installing Embedded server from a zip kit
Installing Embedded server from a zip kit
Quote: Installing Embedded server from a zip kit
The embedded server is a client with a fully functional server linked as a dynamic library (fbembed.dll). It has exactly the same features as the usual Superserver and exports the standard Firebird API entry points.
Registry
The Registry entries for Firebird (where the server normally looks for the location of the root directory) are ignored. The root directory of the embedded server is the directory above where its binary file (library) is located.
Database access
Only “true local” access is allowed. The embedded server has no support for remote
protocols, so even access via "localhost" won't work. Authentication and security The security database (security.fdb) is not used in the embedded server and hence is not required. Any user is able to attach to any database. Since both the server and the client run in the same (local) address space, security becomes a question of physical access. SQL privileges are checked, as in other server models.
Compatibility
You may run any number of applications with the embedded server without any
conflicts. Having IB/FB server running is not a problem either.
But you should be aware that you cannot access the same database from multiple embedded servers simultaneously, because they have SuperServer architecture and hence exclusively lock attached databases.
File structure for the Embedded Server
Just copy fbembed.dll into the directory where your application resides. Then rename it to either fbclient.dll or gds32.dll, depending on your database connectivity software. Make copies having both names if you will need to use the server tools (isql, gbak, etc.)
You should also copy firebird.msg, firebird.conf (if necessary) and ib_util.dll to the same directory.
If external libraries, are required for your application, e.g. INTL support (fbintl.dll) or UDF libraries, they should be located apart from the application directory. To be able to use them, place them into a directory tree which emulates the Firebird server one, i.e., in subdirectories named /intl and /udf directly beneath the directory where the Firebird root files are.
Open your firebird.conf and set RootDirectory to the root of this directory tree. (Don't forget to erase the "#" comment marker!)
Example
D:\my_app\app.exe
D:\my_app\gds32.dll (renamed fbembed.dll)
D:\my_app\fbclient.dll (renamed fbembed.dll)
D:\my_app\firebird.conf
D:\my_app\aliases.conf
D:\my_app\isql.exe
D:\my_app\ib_utils.dll
D:\my_app\gbak.exe
D:\my_app\firebird.msg
D:\my_app\intl\fbintl.dll
D:\my_app\udf\fbudf.dll
firebird.conf:
RootDirectory = D:\my_app
Then, start your application. It will use the embedded server as a client library and will be able to access local databases.
Uninstallation
The Firebird uninstall routine preserves and renames the following key files:
preserves security.gdb or renames it to security.fbnnnn
preserves firebird.log
preserves firebird.conf or renames it to firebird.confnnnn
preserves aliases.conf or renames it to aliases.confnnnn
"nnnn" is the build number of the old installation.
No attempt is made to uninstall files that were not part of the original installation.
Shared files such as fbclient.dll and gds32.dll will be deleted if the share count indicates that no other application is using them. The Registry keys that were created will be removed. |
|

February 20th, 2004, 04:00 AM
|
|
Contributing User
|
|
Join Date: Dec 2003
Posts: 249
  
Time spent in forums: 8 h 23 m 12 sec
Reputation Power: 13
|
|
And Fb Embedded works like a charm!
I'm using this as the user-database for my Advanced Data Generator tool. Easy to deploy and I still get to use my favourite tool to create and maintain the database.
Really, you should give it a try!
__________________
Martijn Tonies
Database Workbench: developer IDE for Firebird, MySQL, InterBase, MSSQL Server and Oracle
Upscene Productions
http://www.upscene.com
|

February 20th, 2004, 11:10 AM
|
|
Registered User
|
|
Join Date: Feb 2004
Posts: 2
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
hi upscene, i would be very grateful if you explain how to use FireBird Embedded Server with Delphi and FibPlus, i created th DB and put int the same Directory the fbemded.dll renaming it to fbclient, i try to access it with FibPlus Database where i put the path, when i execute the app and i order to connect thru the Database component i get "unvailable resource..", when i renamed the dll as gds32.dll the error message changed, i don't know what to do to make the connection, thnx in advance..
|
Developer Shed Advertisers and Affiliates
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Rate This Thread |
Linear Mode
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|