Restore sql database using c# code

Category: sql server smodmo

Question

RaviKy on Wed, 28 May 2014 13:11:40


i need to restore ms sql database by selecting backup file in windows application...how to do it...?  thanx

Replies

Olaf Helper on Wed, 28 May 2014 15:14:42


Hello,

You can find a simple C#/VB.NET example to backup / restore a database in MSDN: Restore.SqlRestoreMethod

And other example at CodeProject: Backup and Restore Databases using SMO