[Webinar] Streamline your web hosting managementRegister Today


C++ and DB

Posted on 1999-12-15
Medium Priority
Last Modified: 2010-04-10
hi! Folks I am trying to modify the data inside a database table. For eg. this is a table and the original data looks like.
Name  Salary
----  ------
John  20,000
Sara  30,000
After modification it will be like this
Name  Salary
----  ------
John  $20K
Sara  $30K

I am using ADO class for connection via DSN on an MS-SQL DB. I am using VC6. Can anyone tell me about binding the data and modifying it and then writing it back to the db.

Question by:vesel
LVL 23

Accepted Solution

chensu earned 200 total points
ID: 2285109
Use the Visual C++ Extensions for ADO (CADORecordBinding).

ADO Tutorial (Visual C++)

Author Comment

ID: 2288544
Thx for the answer.
I cann't give you all the points since you just pointed to the tutorial instead of solving.


Featured Post

Learn to develop an Android App

Want to increase your earning potential in 2018? Pad your resume with app building experience. Learn how with this hands-on course.

Question has a verified solution.

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

When writing generic code, using template meta-programming techniques, it is sometimes useful to know if a type is convertible to another type. A good example of when this might be is if you are writing diagnostic instrumentation for code to generat…
This article shows you how to optimize memory allocations in C++ using placement new. Applicable especially to usecases dealing with creation of large number of objects. A brief on problem: Lets take example problem for simplicity: - I have a G…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
Suggested Courses

590 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