/// ///备份方法 /// SqlConnection conn = new SqlConnection("Server=.;Database=master;User ID=saassword=sa;"); SqlCommand cmdBK = new SqlCommand(); cmdBK.CommandType = CommandType.Text; cmdBK.Connection = conn; cmdBK.CommandText = @"backup database test to disk='C:\ba' with init";