Solved

How to export records from a table to another table which is in other datasource???

Posted on 1998-08-20
1
171 Views
Last Modified: 2013-11-20
We need to create tables dynamically.we could able to do this.Now we need to export records from a table to another table which is in other other datasource.(Ex : we need to exports recods in X table (access) to X table(oracle).We can get source and designation datasources(which is in odbc control panel)programmatically.Just i want to export tables or all records in a table to another datasource of different  type.

Could any body help us???

Thanks in Advance
0
Comment
Question by:MURALI_YAKKALI
1 Comment
 
LVL 1

Accepted Solution

by:
arunprakash earned 100 total points
ID: 1321106
Hi i think u can do it this way,

CSourceRecordSet mSourceSet;
CDestRecordSet    mDestSet;

//set the filters
mSourceSet.Open();

if(!mSourceSet.IsBOF())
 {
 mSourceSet.MoveFirst();
 do
      {
      mDestSet.AddNew();
      //Call a function that moves data from the source record set to the destination
     mDestSet.Update();
     }
while(!mSourceSet.IsEOF())
 }
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Process filename extension 3 195
How to determine file rename from EventLog ? 2 55
Doc'in system (example?) BA 7 115
MaxSpan challenge 9 105
In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
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 …
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.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

860 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