title: How to backup database (SQL Server 2008) in C# without using SMO?
body: <p>I have this code and it is not working but I don't why?</p>
  
  <pre><code>try
  {
     saveFileDialog1.Filter = "SQL Server database backup files|*.bak";
     saveFileDialog1.Title = "Database Backup";
  
     if (saveFileDialog1.ShowDialog() == DialogResult.OK)
     {
        SqlCommand bu2 = new SqlCommand();
        SqlConnection s = new SqlConnection("Data Source=M1-PC;Initial Catalog=master;Integrated Security=True;Pooling=False");
  
        bu2.CommandText = String.Format("BACKUP DATABASE LA TO DISK='{0}'", saveFileDialog1.FileName);
  
        s.Open();
  
        bu2.ExecuteNonQuery();
        s.Close();
  
        MessageBox.Show("ok");
     }
  }
  catch (Exception ex)
  {
     MessageBox.Show(ex.ToString());
  }
  </code></pre>
  
  <p>and I get this error :</p>
  
  <p><a href="https://i.stack.imgur.com/aTzNc.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/aTzNc.png" alt="alt text"></a>
  </p>
  
  <p>What is the problem?</p>