How Can Flush MyDump Cache After Executing or Restoring ?
Posted: Thu 20 Oct 2011 13:33
Hello all,
I searched forum but i haven't find any solution yet.
Case : I have two tables and i want to dump like this :
//First table proc.. table1
mydump.connection := conn1;
mydump.BackupQuery('etc...from table1);
mydump.connection := conn2;
mydump.Restore
//Clear all
mydump.Sql.clear;
//Second table proc. table2
mydump.connection := conn1;
mydump.BackupQuery('etc...from table2);
mydump.connection := conn2;
mydump.Restore;
Problem is the first one getting right sql script like "insert into table1" etc.. with correct data(table1 data), but second one getting same "insert into table1 etc.." statements with correct data ( table2 data). ??
How can i reset MyDump object after first use? I tried everything bu i cant reset MyDump cache or whatelse...
Thanks,
I searched forum but i haven't find any solution yet.
Case : I have two tables and i want to dump like this :
//First table proc.. table1
mydump.connection := conn1;
mydump.BackupQuery('etc...from table1);
mydump.connection := conn2;
mydump.Restore
//Clear all
mydump.Sql.clear;
//Second table proc. table2
mydump.connection := conn1;
mydump.BackupQuery('etc...from table2);
mydump.connection := conn2;
mydump.Restore;
Problem is the first one getting right sql script like "insert into table1" etc.. with correct data(table1 data), but second one getting same "insert into table1 etc.." statements with correct data ( table2 data). ??
How can i reset MyDump object after first use? I tried everything bu i cant reset MyDump cache or whatelse...
Thanks,