Connecting MS SQL server and database.

5 pts.
Tags:
SQL Server 2005
Visual C++
Hi, i am trying to connect MS SQL server and database from visual c++ 2005. Can anybody help me please.

Answer Wiki

Thanks. We'll let you know when a new response is added.

ODBC (Open Database Connectivity)

• A standard interface for connecting from C++ to relational databases
• It allows individual providers to implement and extend the standard with their own ODBC drivers

Here are procedures or rather steps used in the industry in C++ coding for connecting to a database.

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.
  • Sirama
    Refer CDatabase and CRecordSet MFC classes. These classes will help you to connect with the database you want. Create a DSN, then give that DSN to CDatabase instance using the Open method.
    75 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.

Following

Share this item with your network: