answersLogoWhite

0


Best Answer

Most database vendors offer an API for this purpose. The usage will vary by vendor, but generally you open a connection, query (or runcommand), check or step through results, close connection. In the MS Windows environment, you can also use ODBC (Open Database Connectivity), which is an API that abstracts (no, its not C++ classes) the database, its tables, and its query language. You still have to install a vendor specific ODBC driver, and a vendor specific database client, so you still need to consult the vendor documentation. The procedure is similar to the non ODBC solution - you open the connection, query it, step through the results cursor, and close the connection.

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Is it possible to access databases through C-CPP and if so how?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering
Related questions

What are the Advantages and disadvantages of a Combined Cycle Gas Turbines?

A combined cycle is characteristic of a power producing engine or plant that employs more than one thermodynamic cycle. Heat engines are only able to use a portion of the energy their fuel generates (usually less than 50%). The remaining heat (e.g. hot exhaust fumes) from combustion is generally wasted. Combining two or more "cycles" such as the Brayton cycle and Rankine cycle results in improved overall efficiency. It can also work with the Otto, diesel, and Crower cycles which may allow it to be suited to automotive use. Aside from the Rankine cycle, the Stirling cycle could also be used to re-use waste heat in automotive or aeronautical applications, for the simple reason that there is less weight (water) to carry and that stirling engines or turbines can be made to operate with low temperature differences.In a combined cycle power plant (CCPP), or combined cycle gas turbine (CCGT) plant, a gas turbine generator generates electricity and the waste heat is used to make steam to generate additional electricity via a steam turbine; this last step enhances the efficiency of electricity generation. Most new gas power plants in North America and Europe are of this type. In a thermal power plant, high-temperature heat as input to the power plant, usually from burning of fuel, is converted to electricity as one of the outputs and low-temperature heat as another output. As a rule, in order to achieve high efficiency, the temperature difference between the input and output heat levels should be as high as possible (see Carnot efficiency). This is achieved by combining the Rankine (steam) and Brayton (gas) thermodynamic cycles. Such an arrangement used for marine propulsion is called Combined Gas (turbine) And Steam (turbine) (COGAS).