protected void butBackup_Click(object sender, EventArgs e) { if (!Directory.Exists(path)) { Directory.CreateDirectory(path); } try { _entities.ExecuteStoreCommand("BACKUP DATABASE [QuanLyNhanSu] TO DISK='" + path + "\\BackupQuanLyNhanSu.bak'"); RadWindowManager1.RadAlert("Sao lưu dữ liệu thành công", 300, 100, "Thành công", ""); } catch (SqlException ex) { RadWindowManager1.RadAlert("Lỗi: " + ex.Message, 300, 100, "Lỗi", ""); return; } }