LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

SQL Toolkit Copy Records db1->db2

Occasionally, I want to archive records from 1 database to another.  No change in tables or fields, just copy.

 

Basically, I

 

Create Record (db2)

 

Fetch Next until EOF (db1)

PutRecord (db2)

 

This works, but it is incredibly slow.  Any suggestions would be appreciated.  I will post code later today.

 

Thanks in advance, Dave

 

0 Kudos
Message 1 of 2
(2,728 Views)

Hi Diverdke,

 

From what you have described this seems like the most efficient way to move that data. Do the records contain a lot of data? Or does the database have any scheme to keep records in a certain order? There are many factors that may influence performance and those could be hardware or software related. As I said previously the steps you are taking to move the record, in my mind, is the most efficient and straightforward way.

Patrick H | National Instruments | Software Engineer
0 Kudos
Message 2 of 2
(2,713 Views)