Solved

ODBC Inserting a Record into a MSSQL DB for MFC APP

Posted on 2006-11-07
5
476 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 22

Accepted Solution

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

Independent Software Vendors: 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

Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
In this post we will learn different types of Android Layout and some basics of an Android App.
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.
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

705 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