1.
#pragma endregion
2.
void DBSet(String ^s){
3.
this->Text = "MB dan jadvallani o'qish va so'rovlarni amalaga
oshirish:";
4.
auto Ulanish = gcnew OleDb::OleDbConnection( "Data
Source=\"C:\\Oybek.mdbg`"; User " +
5.
"ID=Admin;Provider=\"Microsoft.Jet.OLEDB.4.0\";");
6.
Ulanish->Open();
7.
auto Komanda = gcnew OleDb::OleDbCommand(s, Ulanish);
8.
// Adapter sinfi ob`еktini yaratamiz va SQL-so‘rovini //amalga
oshiramiz
9.
auto Adaptеr = gcnew OleDb::OleDbDataAdapter(Komanda);
10.
// DataSet sinfi ob`еktini yaratamiz
11.
auto NaborDannix = gcnew DataSet();
12.
// DataSet ni SQL-so‘rovini natijalari bilan //to‘ldiramiz
Do'stlaringiz bilan baham: |