Choices of database in doing a standalone application always limited to me. Some people might use MYSQL, MSSQL or even Oracle as database, but to me:
- It is not logical to use a server based database for a standalone application
- You will need to install the database in order to deploy the application, where some settings might not understandable to non technical personnel.
So all the while I am using MS Access as database for standalone application, but still you need to install Microsoft Data Access Components (MDAC) if the PC you deploy doesn’t have MS Access or Office installed.
But now I am using Firebird as database, which you don’t need to install the extra stuffs, just copy over the whole folder to finish the deployment (Literally standalone). Here are some guidelines to use Firebird in .Net:
- Go to Firebird website and download 2 things: database embeded edition (which is in zip format) and .Net FirebirdClient library (in zip format as well).
- Extract following files from the database zip file to your project folder (under bin\debug or bin\release):
- Extract FirebirdSql.Data.FirebirdClient.dll to your project folder (under bin\debug or bin\release).
- Add reference of FirebirdClient to your project, and you can start using it.
- The methods to use FirebirdClient more or less is the same as other Data class, while the connection string is: