Deepak Mule
Deepak Mule

Reputation: 437

Restore .bak on MS SQL server

We have restore command which we can execute from command line. I want to restore backup from Java class. How should I do it?

Upvotes: 0

Views: 354

Answers (1)

David Webb
David Webb

Reputation: 193696

You can run system commands from Java code.

The best way to do this is using the ProcessBuilder class.

Upvotes: 1

Related Questions