public bool BackupDatabase()
{
// Create Instance of Connection and Command Object
SqlConnection myConnection = new SqlConnection(ConfigurationSettings.AppSettings["connectionString"].ToString());
string sBackup = "BACKUP DATABASE " + myConnection.Database + " TO DISK = 'c:\\sql.bak' WITH NOINIT";
SqlCommand myCommand = new SqlCommand(sBackup, myConnection);
// Open the database connection and execute the command
myConnection.Open();
myCommand.ExecuteNonQuery();
myConnection.Close();