To load a table from an Access DB using a dataReader string ConnString; ConnString=@"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\yourPath\yourDB.mdb"; OleDbConnection myConn = new OleDbConnection(ConnString); try { myConn.Open(); OleDbCommand myCommand = new OleDbCommand("",myConn); myCommand.CommandText = "select * from parametri"; OleDbDataReader myDR = myCommand.ExecuteReader(); myDR.Read(); n=myDR.GetInt32(1); myDR.Read(); m=myDR.GetInt32(1); myDR.Close(); myCommand.CommandText = "select * from nodi"; myDR = myCommand.ExecuteReader(); while(myDR.Read()) { i = myDR.GetInt32(0); nodi[i].x=myDR.GetInt32(1); nodi[i].y=myDR.GetInt32(2); nodi[i].name=myDR.GetString(3); archi[i,0]=0; } myDR.Close(); myConn.Close(); } catch(OleDbException e1) { MessageBox.Show("Errore:: "+e1.Message); } }