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?


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.