I googled but cannot find proper simple code for using backup database full and restore the backup, using defaults by using C#.
I am using C# Visual Studio 2008 and SQL Server 2008 R2 evalution but I guess SQL Server 2005 and C# will work too.
The Microsoft site doesn't have code regarding it, it only show description of Microsoft.SqlServer.Management.Smo
Namespace......