using System; using System.Data.Odbc; class Baasiproov2{ public static void Main(string[] arg){ string constr="DSN=proovibaas2"; string lause="SELECT mark FROM autod"; OdbcConnection cn=new OdbcConnection(constr); cn.Open(); OdbcCommand cm = new OdbcCommand(lause, cn); OdbcDataReader reader=cm.ExecuteReader(); while(reader.Read()){ Console.WriteLine(reader.GetString(0)); } cn.Close(); } }