Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MS SQL connectivity using C++

Status
Not open for further replies.

stijndw

Programmer
Mar 7, 2001
1
FR
I want to connect to a MS SQL server using C++.

where do i get started? what is the easiest way?

Can you! send me some simple samples??

thanks for your help!

Stijn
 
You might want to look at the Microsoft Developer Network. They have their entire API online at
Once there, follow the tree (toc) to Platform SDK Documentation, Data Services, Microsoft ActiveX Data Objects (ADO). This is their COM interface to relational and non-relational data.

If you're looking for more of a "C" style way to do this, look at the Microsoft Open Database Connectivity section.

There is no "pure" C++ wrapper for their data access technologies supplied by Microsoft. If you want one, look at Rogue Wave's DBTools.h++.

The ADO is more current, but will require you to learn how to call methods in COM objects, which is probably something you'll need to learn in any case if you plan to work with Microsoft technologies.

Chip H.
 
There are many APIs. They are ODBC, ADO, DAO, BDE, SQL++ and many more.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top