Avatar of AndyAinscow
AndyAinscow
Flag for Switzerland asked on

ADO recordsets created in memory

I have the following situation where I create an ADO recordset in memory

crudely
ADO::_RecordsetPtr rs;
..
rs->Fields->Add("IntField",...);
rs->Fields->Add("TextField",...);

rs->Open();
rs->AddNew();
..
rs->Update();

Now I would like to create a similar recordset, call it rs2, and add records to it.  Both have an integer field which I would like to use to join the two sets together.  
(Think of a classical SQL statement SELECT TblA.TextField, TblB.TextField FROM TblA INNER JOIN TblB ON TblA.IntField= TblB.IntField ).

Remember I don't actually have any tables, just two recordsets constructed in memory.

So is it possible? and if so how?


C++

Avatar of undefined
Last Comment
AndyAinscow

8/22/2022 - Mon
AlexFM

Looks like ADO+ task, but it exists only in .NET. Do you need only unmanaged solution?
AndyAinscow

ASKER
Thanks Alex, unmanaged if possible please (The app won't be .NET based).

If it isn't possible then I can live without it but a .NET solution could be of interest for later.
ASKER CERTIFIED SOLUTION
clockwatcher

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
AndyAinscow

ASKER
Thanks clockwatcher - I'll study that code later and get back.
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck
AndyAinscow

ASKER
clockwatcher - eyeballing the code and it looks a nice piece of work to base things on.  As no one else has responded it looks like there is no in-built functionality to achieve this.

Thankyou.