views:

857

answers:

1

Hi,

as i said in the Title i wanna backup with full dif and restore it from c# .. Is there any examples for me?

+1  A: 

See Bappi M Ahmed - SQL Server 2005 Database Backup and Restore using C# and .NET 2.0:

"You need to reference the following namespaces before using this code:
Microsoft.SqlServer.Management.Smo;
Microsoft.SqlServer.Management.Common;

I used these two class to perform the backup and restore operations: Microsoft.SqlServer.Management.Smo.Backup
Microsoft.SqlServer.Management.Smo.Restore"

Max Gontar
Would you add BOL links to those SMO namespaces? Thanks.
Sung Meister