Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

ODBC Inserting a Record into a MSSQL DB for MFC APP

Posted on 2006-11-07
5
Medium Priority
?
499 Views
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..

Thanks
0
Comment
Question by:ryankahan
  • 3
  • 2
5 Comments
 
LVL 22

Accepted Solution

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

For sample look at this ODBC Wrapper :
http://www.codeproject.com/database/ODBC.asp

-MAHESH
0
 

Author Comment

by:ryankahan
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.

Thanks
0
 
LVL 22

Expert Comment

by:mahesh1402
ID: 17904246
Ok Look here at this sample :http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vcsample/html/_sample_mfc_ENROLL.asp

Step by step instructions which meets exactly to your needs.

-MAHESH
0
 

Author Comment

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

Expert Comment

by:mahesh1402
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.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
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.
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
Suggested Courses

810 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