private void button1_Click(object sender, System.EventArgs e) { // SqlConnection cn = new SqlConnection( // "Persist Security Info=False;Integrated Security=SSPI;database=pubs;server=localhost"); SqlConnection cn = GetConnection(); cn.Open() ; SqlDataReader rdr = new SqlCommand("select * from authors",cn).ExecuteReader(CommandBehavior.CloseConnection); while (rdr.Read()) { comboBox1.Items.Add(String.Format("{0},{1}",rdr["au_fname"],rdr["au_lname"])); } cn.Close(); }Unfortunately I was the only one seeing this code as a simple solution:)