Recent

Author Topic: SQLite on server  (Read 3644 times)

amir.eng

  • Full Member
  • ***
  • Posts: 103
SQLite on server
« on: March 23, 2022, 03:50:11 pm »
Hello guys,
I designed a program with encrypted SQLite database that you helped me about connectiong between them. All of system that are used the program were single user so far, but at a company all systems are srever and clients. As I know Sqlite is not working on Server, so I'm seeking a suitable database for my project. I know I can use SQLServer or MS Access database for the project, but SQLServer is not free and it has a huge size of installation package (free version of SQLServer is limited) and Access database is not powerful on Server/Client and it is also a small size of database (2GB). So I'm looking for a database which has this features :

- Free (price = 0.0)
- Small size of installation package (Or without needing any installation like SQLite which it has only a DLL)
- Usable on Server/Client
- Security of database (ecryption database like SQLite or set password on database so that users can't be able to see the content of database)

I would appreciate your suggestions and comments.
« Last Edit: March 23, 2022, 04:06:36 pm by amir.eng »
Lazarus 3.0 , FPC 3.2.2 , Windows 10 64, Excel 2016 64

SymbolicFrank

  • Hero Member
  • *****
  • Posts: 1315
Re: SQLite on server
« Reply #1 on: March 23, 2022, 04:00:52 pm »
PostgreSQL is nice.

Zvoni

  • Hero Member
  • *****
  • Posts: 3226
Re: SQLite on server
« Reply #2 on: March 23, 2022, 04:01:11 pm »
1) MS Access is not a "server"-Database, either. It's filebased like SQLite
2) What OS is running on that Machine which is going to serve as "server"?
3) Look at Postgres, MySQL/Maria or Firebird with Postgres being the "best" regards "License".
As for size of Install-Packages: No Idea. Look at the Distributions, or someone else wants to chip in
One System to rule them all, One Code to find them,
One IDE to bring them all, and to the Framework bind them,
in the Land of Redmond, where the Windows lie
---------------------------------------------------------------------
Code is like a joke: If you have to explain it, it's bad

amir.eng

  • Full Member
  • ***
  • Posts: 103
Re: SQLite on server
« Reply #3 on: March 23, 2022, 04:08:25 pm »
We works on Windows OS.
Lazarus 3.0 , FPC 3.2.2 , Windows 10 64, Excel 2016 64

af0815

  • Hero Member
  • *****
  • Posts: 1407
Re: SQLite on server
« Reply #4 on: March 23, 2022, 07:20:54 pm »
If you have a MS-Sql windows based enviroment, the free (of charge) version of MS-SQL Server is a good choice. And MS-SQL Server is also running on Ubuntu LTS Versions of Linux too.

We use the (i call - poor man version) MS-SQLServer instead of SQLite. You can do the same user managment (i use normal SQL Security) and security like the full version. Except of the SQL-Agent nearly all is working for the poor man version. If your Application is growing, you can also step up you licence. Managment of the poor version is the same like for the full version. And under Linux i use cron and scripting for automartic backups and transfer them to a FTP Server.

regards
Andreas

superc

  • Sr. Member
  • ****
  • Posts: 251
Re: SQLite on server
« Reply #5 on: March 23, 2022, 08:55:02 pm »
Hello, from my experience Postgres is a good choice... It's free, it's powerful and have a powerful language,
another good choice would be firebird.

amir.eng

  • Full Member
  • ***
  • Posts: 103
Re: SQLite on server
« Reply #6 on: March 23, 2022, 09:29:28 pm »
Thank you all for replying, I researched two databases : Postgres and Firebird
I think both of them are the database that I'm looking for, but I have some questions :

- I have download Firebird and it does not have a database management or GUI tool like SQLServer Management, or I was wrong ??
- Is it possible to create embeded or single database with Postgres like SQLite?
- Do clients need to install anything to connect the database for both of  Postgres and Firebird? (I mean installing Firebird or Postgres on clients) , in this case which one is easier ?
« Last Edit: March 23, 2022, 09:32:29 pm by amir.eng »
Lazarus 3.0 , FPC 3.2.2 , Windows 10 64, Excel 2016 64

howardpc

  • Hero Member
  • *****
  • Posts: 4144
Re: SQLite on server
« Reply #7 on: March 23, 2022, 09:55:48 pm »
- I have download Firebird and it does not have a database management or GUI tool like SQLServer Management, or I was wrong ??
For Firebird there is the cross-platform Flamerobin, see http://flamerobin.org/

sstvmaster

  • Sr. Member
  • ****
  • Posts: 306
Re: SQLite on server
« Reply #8 on: March 23, 2022, 09:59:40 pm »
...
- I have download Firebird and it does not have a database management or GUI tool like SQLServer Management, or I was wrong ??
...
There free GUI tools: https://firebirdsql.org/en/third-party-tools/
greetings Maik

Windows 10,
- Lazarus 4.4 (stable) + fpc 3.2.2 (stable)
- Lazarus 4.99 (trunk) + fpc 3.3.1 (main/trunk)

abouchez

  • Full Member
  • ***
  • Posts: 134
    • Synopse
Re: SQLite on server
« Reply #9 on: March 23, 2022, 10:45:35 pm »
Just add a network layer on top of your SQLite3 DB.

mORMot can do this for free on FPC.

Either to publish the DB over HTTP and run SQL:
https://synopse.info/files/html/Synopse%20mORMot%20Framework%20SAD%201.18.html#TITL_131
and
https://github.com/synopse/mORMot2/blob/master/src/db/mormot.db.proxy.pas

Or even better use interface based services.

The mORMot SQLite3 engine has optional encryption with AES-NI (very fast and secure).

Zvoni

  • Hero Member
  • *****
  • Posts: 3226
Re: SQLite on server
« Reply #10 on: March 24, 2022, 08:36:59 am »
- I have download Firebird and it does not have a database management or GUI tool like SQLServer Management, or I was wrong ??
DBeaver https://dbeaver.io/
Quote
- Is it possible to create embeded or single database with Postgres like SQLite?
Firebird has an Embedded version
Quote
- Do clients need to install anything to connect the database for both of  Postgres and Firebird? (I mean installing Firebird or Postgres on clients) , in this case which one is easier ?
At least the client-lib and/or the Driver
One System to rule them all, One Code to find them,
One IDE to bring them all, and to the Framework bind them,
in the Land of Redmond, where the Windows lie
---------------------------------------------------------------------
Code is like a joke: If you have to explain it, it's bad

superc

  • Sr. Member
  • ****
  • Posts: 251
Re: SQLite on server
« Reply #11 on: March 24, 2022, 08:49:30 am »
ZVoni, You beat me on time  :D ;

Postgres have PgAdmin for connect and admin DB.

Zvoni

  • Hero Member
  • *****
  • Posts: 3226
Re: SQLite on server
« Reply #12 on: March 24, 2022, 09:27:42 am »
ZVoni, You beat me on time  :D ;

Postgres have PgAdmin for connect and admin DB.
Yes, but be careful to NOT get the phpPGAdmin.
I fell for that one, and wondered why my dev-machine wanted to install Apache
One System to rule them all, One Code to find them,
One IDE to bring them all, and to the Framework bind them,
in the Land of Redmond, where the Windows lie
---------------------------------------------------------------------
Code is like a joke: If you have to explain it, it's bad

amir.eng

  • Full Member
  • ***
  • Posts: 103
Re: SQLite on server
« Reply #13 on: March 24, 2022, 10:30:25 am »
Thank you all for introducing FireBird and Postgre database, these are great databases, DBeaver is the best to management all the databases.

Is it possible to encrypt database in FireBird or Postgre?
« Last Edit: March 24, 2022, 10:41:29 am by amir.eng »
Lazarus 3.0 , FPC 3.2.2 , Windows 10 64, Excel 2016 64

marsupilami79

  • New Member
  • *
  • Posts: 43
Re: SQLite on server
« Reply #14 on: March 24, 2022, 11:20:18 am »
Is it possible to encrypt database in FireBird or Postgre?
I do know that Firebird has added Interfaces for implementing database encryption. But they don't deliver one with their server. IBSurgeon and IBPhoenix sell modules that can be used. I tend to encrypt the whole server or at least the database partition if I need database encryption.
Zeos developer

 

TinyPortal © 2005-2018