Community
Showing results for 
Search instead for 
Do you mean 
Reply

Help! Restore Database As!

Copper Super Contributor
Posts: 71
Country: Canada

Help! Restore Database As!

Hello fellow forum members,

 

I am currently writing in VB and I am trying to click a button and have it restore a database from a zipfile using the RestoreDatabaseAs method however I cannot seem to get it to work, does anyone know how to properly code this in VB? 

Bronze Super Contributor
Posts: 1,231
Country: USA

Re: Help! Restore Database As!

There is s method to restore as. It takes 10 parameters. like this:

 

 ACTAPP.ActFramework.RestoreDatabaseAs(dbName, _
                                      dbHost, _
                                      dbType, _
                                      dbTargetFolder, _
                                      userLogon, _
                                      userPW, _
                                      ZipFileName, _
                                      ZipPW, _
                                      progressBar, _
                                       False)

 

Hope this helps.

-- Jim Durkin

Copper Super Contributor
Posts: 71
Country: Canada

Re: Help! Restore Database As!

Hey Jim,

 

I tried using that however it does not seem to ever work for me, is there something special I have to define for the progressBar parameter as I think that is where its erroring out on me.

Copper Super Contributor
Posts: 71
Country: Canada

Re: Help! Restore Database As!

Could you send an example of how it would work with a fake zip file and database credentials?