C# SQL bağlantısı
using System.Data;
using System.Data.SqlClient;
SqlConnection baglanti = new SqlConnection("Data Source=.; initial Catalog=DENEME2; Integrated
Security=true");
baglanti.Open();
SqlDataAdapter da = new SqlDataAdapter("Select *From kul", baglanti);
DataTable tablo = new DataTable();
da.Fill(tablo);
dataGridView1.DataSource = tablo;
baglanti.Close();
Yorumlar
Yorum Gönder