reading and writing in the winform using the access database

Vsi tehnični vidiki izdelovanja iger - programiranje vseh vrst in oblik, modeliranje, animacija, risanje, dizajn, grafika, glasba in zvok, umetna inteligenca, matematika, fizika itd.

reading and writing in the winform using the access database

OdgovorNapisal/-a sakurasanta86 » To Avg 21, 2018 10:06 am

I would ask you for one help.

Namret, somehow I fail to be able to read and write in and from the access file, test.mdb file.

I'm open with:

OleDbConnection conn;
OleDbCommand comm;
OleDbDataReader dr;
conn = new OleDbConnection ("Provider = Microsoft.Jet.OLEDB.4.0; Data Source = C: \\ CollectionData1.mdb");
comm = new OleDbCommand ("Select * from emp", conn);
conn.Open ();
dr = comm.ExecuteReader ();

/ * DataGrid1.DataSource = dr;
DataGrid1.DataBind (); * /
// conn.Close ();


How should I use it for reading, what would be best to print, listbox or anything else?

Thank you
sakurasanta86
novinec
novinec
 
Prispevkov: 1
Pridružen: To Avg 21, 2018 10:03 am

Vrni se na Izdelovanje iger

Kdo je na strani

Po forumu brska: 0 registriranih uporabnikov in 2 gostov

cron