Author: Nathan

Backup and restore SQL databases

Programming tutorial that shows you how to backup a SQL database to a BAK file and then restore it from the same file using C#. First we list all running SQL Server 2005 instances, then we connect to one of them and retrieve all the databases from that server, finally we create the backup and restore operations; everything is done using SQL Management Objects (SMO).

Back To Top