Hi everyone!

What is the code if I want to connect to MS ACCESS or SQL SERVER using C++?
Is there a special compiler for c++ for that database code?


Thanks

Recommended Answers

All 2 Replies

No special compiler needed. What you need is to use ODBC (there are other ways that are more specific to the database, but ODBC is common to them all)

google ODBC c++ classes and you will find several free ones.

I'd also suggest you read some ODBC tutorials and SQL tutorials You will have to learn the SQL language in order to make use of ODBC.

Thank you very much!

God bless you!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.