Restore sql database using c# code

Category: sql server smodmo


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

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


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


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