Question

Dixit Soliya on Sat, 31 Dec 2016 06:42:39


Hi,

I am creating a windows application using vb .net and want to use Backup and Restore methods in it. I want a code that will backup the database and settings to this drives( whichever is selected). what should I do? I know that it has something to do with API, but I don't know how to use it. Please help me. Also help me with a code that can restore the database from drives.


Sponsored



Replies

DA924x on Sat, 31 Dec 2016 07:05:35


Hi,

I am creating a windows application using vb .net and want to use Backup and Restore methods in it. I want a code that will backup the database and settings to this drives( whichever is selected). what should I do? I know that it has something to do with API, but I don't know how to use it. Please help me. Also help me with a code that can restore the database from drives.

You sure you can do this? You just can't toss anything out there you want.

Mr. Monkeyboy on Sat, 31 Dec 2016 07:13:56


Well for onedrive API you should ask here I suppose http://stackoverflow.com/questions/tagged/onedrive although why Microsoft archived it's own Forum for onedrive and uses stackoverflow is a mystery but MS seems out in the weeds IMO. And maybe look somewhere here https://dev.onedrive.com/index.htm for assistance.

Regarding Google Drive perhaps you should look here https://developers.google.com/drive/v3/web/support to find where to ask.

Kareninstructor on Sat, 31 Dec 2016 10:24:45


Hello,

What type of database? 

If MS-Access why not create a copy to another folder and for recovery copy it back.

If SQL-Server consider using an API as described here. If the SQL-Server database is an attached database the same applies for using the API method or copy method.

These considerations require no access to the Internet or changing API for Google or OneDrive and the odds of them changing are high.

Other considerations, is the database in use either by the app, another program? That needs to be taken into considerations also.