title: How to read columns from compact database
body: <p>I'm using C# 2010 Express and Sql Compact. I have a table named as "Records" and column named as "Names" I want to list that names in a listbox.</p>
  
  <p>I wrote that code but last line is thorws "ExecuteReader: Connection property has not been initialized." exception.</p>
  
  <pre><code>  SqlCeConnection Baglan = new SqlCeConnection("Data Source=|DataDirectory|CeoDatabase.sdf;Password=CeoDB;Persist Security Info=True");
  
          Baglan.Open();
  
      SqlCeCommand BarlariAl = new SqlCeCommand("SELECT Names FROM Barlar");
  
      SqlCeDataReader BarlariOku = BarlariAl.ExecuteReader();
  </code></pre>