c# access veritabanı bağlantı komutları
OleDbConnection conAC;
OleDbDataAdapter daAC;
OleDbCommand cmdAC;
DataTable dtac = new DataTable("kayit");
DataSet dsAC;
conAC = new OleDbConnection("Provider=Microsoft.ACE.Oledb.12.0;Data Source=salih.accdb");
daAC = new OleDbDataAdapter("Select *from kayit", conAC);
dsAC = new DataSet();
conAC.Open();
daAC.Fill(dtac);
dataGrid.ItemsSource = dtac.DefaultView;
conAC.Close();
OleDbConnection conAC;
OleDbDataAdapter daAC;
OleDbCommand cmdAC;
DataTable dtac = new DataTable("kayit");
DataSet dsAC;
conAC = new OleDbConnection("Provider=Microsoft.ACE.Oledb.12.0;Data Source=salih.accdb");
daAC = new OleDbDataAdapter("Select *from kayit", conAC);
dsAC = new DataSet();
conAC.Open();
daAC.Fill(dtac);
dataGrid.ItemsSource = dtac.DefaultView;
conAC.Close();
Yorumlar
Yorum Gönder