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.
ASKED: June 17, 2012  10:19 AM
UPDATED: October 14, 2013  3:41 PM

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.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • 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.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

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

Following