public int RealizarBackup() { string query = @"Backup database CareMonitor to disk='C:\Backup" + "-" + DateTime.Now.Day.ToString() + "-" + DateTime.Now.Month.ToString() + "-" + DateTime.Now.Year.ToString() + "--" + DateTime.Now.TimeOfDay.Hours.ToString() + "-" + DateTime.Now.TimeOfDay.Minutes.ToString() + ".bak'"; //string query = @"Backup database CareMonitor to disk='C:\Backup'"; acc.AbrirConexionMaster(); int accion = acc.Escribir(query); acc.CerrarConexion(); GC.Collect(); return(accion); }