+ 1
How do how backup ms-sql database using c#
Backup database
1 Answer
0
using(SqlConnection con=new SqlConnection("constring")){
string query="backup database DBName to disk 'c:\db.bak' ";
con.Open();
using(SqlCommand cmd=new SqlCommand(query,con){
cmd.ExecuteNonQuery();
}
}