SqlConnection baglanti = new SqlConnection(connectionstring);
baglanti.Open();
SqlCommand verial = new SqlCommand("select COUNT(*) from tablo_adi", baglanti);
int satirsayisi= Convert.ToInt32(verial.ExecuteScalar());
baglanti.Close();
MessageBox.Show(satirsayisi.ToString());