You want to add a functionality in your C# application to allow user to select the database to restore and taking backups of the database. C# provides the classes to allow a programmer to achieve this in the application.
Before you go and implement this feature in your application, make sure you have added the references of the following namespaces:
- Microsoft.SqlServer.Smo
- Microsoft.SqlServer.ConnectionInfo
Click the below link to download the full application.
Download: DBBackup.zip (290.99 kb)