- Code: Select all Expand view
- local nSecs, aTables, cBackUpFile := 'c:\easyfo\backup\test.sql'
nSecs := seconds()
oCon:SelectDB( 'data' )
oCn:Backup( nil , cBackUpFile , nil, 1000000 ) // upto 1000000 records (4th parameter need or not)
? 'Backup : '+cBackUpFile + " created in ", Seconds() - nSecs, "Seconds"
nSecs := seconds()
oCon:SelectDB( 'test' )
oCn:Restore( cBackUpFile ) // Can I use 4th parameter to specific Database or need to change current database by use ::SelectDB()
? 'Restore : '+cBackUpFile + " created in ", Seconds() - nSecs, "Seconds"
What did I do wrong?
Thanks in advance,