Home TechnologyProgrammingSQL & Databases Subscribe to RSS

Can I Use Database In C++?

I would like to use database in c++ programs. Can i able to do c++ programs with any sql (oracle/ ms access/ my MySQL....).

Answer Question

1 Answer - Sort by: Date | Rating

    Well this actually depends on number of things, first thing that you need to do is to choose which API. You will need. You can choose among the following.

    * Embedded SQL (ESQL)
    * ODBC
    * ADO
    * OLE/DB and many more

    Every one of the above has it's own advantage and disadvantage. The most important comes when you decide if you want to hit the SQL directly (ESQL or ODBC) or use higher-up abstractions (OLE, ADO, or others).
    It is better to hit the SQL directly as it will provide you with the advantage to have full control over the SQL executed and type of coming response which also includes isolation level.
    With the abstraction layer, you will lose some control and you'd have to work around a framework in order to have good performance. If you need some more help. Some more work is done for you.




    0 0

    Anumchris 

    answered 2 years ago

      Answer Question - Answers are editable for 5 min.

      If you do not Sign-in or Register your answers will

      be anonymous, your answers may also be

      checked before going online.

      0

      More

      More

         
         

        Ask a Question via Twitter

        Send a question to @askblurtit and we will publish it online and send you a reply everytime you receive an answer.

        Blurtit Store

        Get T-shirts, hoodies, caps and more at the Blurtit store

        Blurtit International