hi frnds,
how can we connect to a sql server database using C++ program.can anyone pls post a code for this ...

Recommended Answers

All 3 Replies

most common way is via ODBC -- use google to search for ODBC and you will find some c++ classes.

Here is a pretty fine example on how you can get this done

Is it a joke ?
It's a copy of one of the MSDN KB samples !!!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.