Community
Showing results for 
Search instead for 
Do you mean 
Reply

Restoring Database through code

Accepted Solution Solved
Copper Super Contributor
Posts: 71
Country: Canada
Accepted Solution

Restoring Database through code

[ Edited ]

Hello Everyone,
I was able to figure out how to restore a database in the afterlogon event in ACT! using the code below

instance.RestoreDatabaseAs(databaseName, databaseHost, databaseType, newTargetFolder, userLogOn, userPassword, zipFile, zipPassword, progressHandler, shareDatabase)

What I really want to be able to do is have a seperate program that I created that has a button that when click it restores a database however I am not sure how to do it as the code above requires an instance and I am not sure how to declare it for a program that is not running when ACT! is, is this possible?


Accepted Solutions
Solution
Accepted by topic author MattRobillard
‎09-25-2015 03:20 AM
Employee
Posts: 1,163
Country: USA

Re: Restoring Database through code

Take a look at this thread.

 

If you need any further assistance don't hesistate to ask.

Matthew Wood
Act! SDK Support
Community Moderator

View solution in original post


All Replies
Solution
Accepted by topic author MattRobillard
‎09-25-2015 03:20 AM
Employee
Posts: 1,163
Country: USA

Re: Restoring Database through code

Take a look at this thread.

 

If you need any further assistance don't hesistate to ask.

Matthew Wood
Act! SDK Support
Community Moderator