0

The project I'm working uses SMO to restore the needed databases as part of the application installer. The problem is, on a machine that has never had the application installed.

From the event logs, it seems like the database can't be restored because it doesn't exist in the instance. (Due to the fresh install)

Can I use SMO to restore the database to an instance where it doesn't already exist? Is there a best practice for installing databases this way?

1 Answer 1

1

Have you thought about maybe just using smo to attach the database on new installation, assuming you already have the .mdf/.ldfs and related paths?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.