ODBC Inserting a Record into a MSSQL DB for MFC APP

Posted on 2006-11-07
Last Modified: 2013-11-20
Please assist me with the process of doing this.

I need to know where to get the DLL's for ODBC drivers.

An example of an insert command using ODBC with the connection settings Etc..

Question by:ryankahan
  • 3
  • 2
LVL 22

Accepted Solution

mahesh1402 earned 500 total points
ID: 17896400
ODBC driver for MS SQL is included with both Win2000 and WinXP.

For sample look at this ODBC Wrapper :


Author Comment

ID: 17896696
Thats a very comprehensive link, but what would i take from that page to create a connection,database,recordset and insert a line into the table.

Its a lil over my head.

LVL 22

Expert Comment

ID: 17904246
Ok Look here at this sample :

Step by step instructions which meets exactly to your needs.


Author Comment

ID: 17912790
This example is proving difficult to integrate into my existing app.
LVL 22

Expert Comment

ID: 17912799
you need to look at src code of sample..... about how to add/update records.. when you open workspace you can easily locate needed code.

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Creating Labels and Frequency list style reports in SAS code 9 92
Replacement selected text 2 58
Named range not carried over 10 61
Path of Workbook 3 59
Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

932 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now