public partial class Form1 : Form
{
SqlConnection baglanti;
SqlCommand komut;
SqlDataAdapter da;
public Form1()
{
InitializeComponent();
}
void KisiGetir()
{
baglanti = new SqlConnection("Data Source=""; Initial Catalog=""; Integrated Security=SSPI");
baglanti.Open();
da = new SqlDataAdapter("Select *From Kisiler1", baglanti);
DataTable tablo = new DataTable();
da.Fill(tablo);
dataGridView1.DataSource = tablo;
baglanti.Close();
}
{
SqlConnection baglanti;
SqlCommand komut;
SqlDataAdapter da;
public Form1()
{
InitializeComponent();
}
void KisiGetir()
{
baglanti = new SqlConnection("Data Source=""; Initial Catalog=""; Integrated Security=SSPI");
baglanti.Open();
da = new SqlDataAdapter("Select *From Kisiler1", baglanti);
DataTable tablo = new DataTable();
da.Fill(tablo);
dataGridView1.DataSource = tablo;
baglanti.Close();
}
Yorumlar
Yorum Gönder