+ 1

How do how backup ms-sql database using c#

Backup database

6th Jul 2017, 9:07 PM
kukogho gabriel
kukogho gabriel - avatar
4 Antworten
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(); } }
5th Aug 2017, 7:56 PM
Ruud Maanda Matshili
Ruud Maanda Matshili - avatar