Mostafa Talebi
Mostafa Talebi

Reputation: 9173

Connection of a program to a database when using c++

I'm writing a simple program to manage the contacts. Now, I want to ask how can I handle DB storage for the program?

Since the program is installed locally, and it goes in many different Windows operating system, how the Database storage and connectivity will be handled on the machines where no MS SQL Server is installed? How the portability and shipment is tackled?

Upvotes: 0

Views: 52

Answers (1)

Jakub Arnold
Jakub Arnold

Reputation: 87210

If you need to use SQL Server specifically, then it has to be installed on the machine.

On the other hand, if all you need is to store some data and not necessarily a database, that could be done in an arbitrary way.

You could also use something like SQLite, which is an SQL database that can be stored in a single file and doesn't require a server running (meaning you can just access it from your program using the driver.)

Upvotes: 2

Related Questions