string filename = textBox1.Text + "\\Issues" + DateTime.Now.ToShortDateString().Replace('/', '-') + " - " + DateTime.Now.ToLongTimeString().Replace(':', '-'); string strquery = "Backup Database Issues to Disk='" + filename + ".bak'"; cmd = new SqlCommand(strquery, cn); cn.Open(); cmd.ExecuteNonQuery(); cn.Close();
if (SqlCon.State == ConnectionState.Open) { //SqlCon.Close(); //SqlCon.Open(); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)