bu yazdığın iki kod tek bir yerde mi ?
eğer öyle ise connection ı iki kere açmışsın
komut.Connection.Open();
bunu sil. ikinci olarak
rd.Close();
kodun en altına yaz diğer yerlerden sil.
bunlar çözüm değilse verilen hata nedir?
Evet hocam aynı yerde catch deki hatayı veriyor
catch (Exception)
{
MessageBox.Show("baglanti hatası");
}