title: "executenonquery connection property has not been initialized"
body: <pre><code>SqlConnection cn = new SqlConnection(@"DataSource=dbedu.cs.vsb.cz\SQLDB;Persist Security Info=True;User ID=*****;Password=*******");
  
  SqlCommand cmd = new SqlCommand();
  string finish = DropDownListFi.SelectedValue;
  cn.Open();
  String Name = Request.QueryString["Name"];
  cmd.CommandText = "UPDATE navaznost_ukolu SET finish=@finish where Name='" + Name + "'";
  cmd.Parameters.Add(new SqlParameter("@finish", finish));
  cmd.ExecuteNonQuery();
  cmd.Clone();
  </code></pre>
  
  <p>The error message</p>
  
  <blockquote>
    <p><em><strong>Executenonquery connection property has not been initialized.</em></strong></p>
  </blockquote>