Quantcast
Channel: WinDev Forum
Viewing all articles
Browse latest Browse all 1914

HRestoreBackup (no replies)

$
0
0
Hello All,

At this moment I am busy developing an automated backup program for my customers.
Till now only the creation of the full backup is accomplished, restoring is still failing. For testing purposes I use the simplified code below:
MyConnection is Connection

HCloseConnection(MyConnection)
HRestoreBackup(MyConnection,DataPath)
But if I try to restore, I get the following error (DESKTOP = my own machine):
Error returned by < Server:4900> server: You cannot restore the < Database> database because the < MyConnection> connection 
opened from the < DESKTOP> computer for the < admin> user uses this database.
It looks like a pretty straightforward issue, as I still have some sort of connection open to the database. But this is certainly not the case, as my code suggests above.
I tried multiple things with disconnecting the connections with HFSQL Control Center, although this had no effect whatsover.

I already looked at the "WD Duplication" example which didnt even require a disconnect.
Any tips or solutions will be appreciated!

Regards,
Rik

Viewing all articles
Browse latest Browse all 1914

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>