I know SQL, and I know the basic structure of a database, but what I don’t know is how exactly does a file-based database work as opposed to a server-based one.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
First of all databases are stored in files! So a simplified answer would be there is no difference.
But when we refer to file-based databases we mean databases that we interact with/update directly (via an SQL abstraction offered by the JDBC driver) but in essence we just read/write to a file directly. Example would be
SQLiteWhen we talk about server based databases we mean that there is a server process running (bind to some port), that accepts requests (i.e. SQL queries). Your process connects to the server and sends queries to the server which itself is responsible to update the database files. Example is
MS-SQL Server.The server based database could be anywhere (could be accessed via network) while the file-based database must be in a file in the local file-system.
Which one to choose depends on your needs.