Solved

CRecordset problem... When trying to Open,it says ODBC driver doesn't support Dynasets

Posted on 2000-03-30
3
216 Views
Last Modified: 2013-11-20
Do you know what is the problem?

How can I read and write to fields in a Recordset without the need of deriving a CRecordset class?

Thanks in advance
Skel
0
Comment
Question by:skel
3 Comments
 
LVL 4

Accepted Solution

by:
inpras earned 100 total points
Comment Utility
Hi
CRecordset rs;
rs.Open(CRecordset::dynaset, "SELECT * FROM MyTab", none);
and access the fields

to update
CDatabase db;
db.Open(...);
db.ExecuteSQL("UPDATE TABLE tab1 SET...");

Hope this helps
inpras
0
 

Expert Comment

by:ycl
Comment Utility
Yes,use SQL clause is a effective way.
0
 

Author Comment

by:skel
Comment Utility
But when I use rs.Open(CRecordset::dynaset, "SELECT * FROM MyTab", none); I get the error that ODBC Driver doesn't support dynasets....

Finally I'm trying using DAO... I have more experience on that

Skel
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

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: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
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.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

772 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

16 Experts available now in Live!

Get 1:1 Help Now