hi,
it would have been more helpful had you mentioned which database are you interested in.
Oracle is an object-relational database management system. To connect with an Oracle database you can use OCI. Look
here[
^] for more. You might still have to google more on this.
MySql is another popular database. I found this
link[
^]helpful.
These interfacing libraries are not specific to VS2012 but just go through the literature to make sure which versions are compatible with your IDE of choice.
You might find it helpful to start by building the sample programs and running them.
hope this helps !