namespace hello; interface uses System, System.Data.OleDb; type Hello = class public class method Main(args: array of String): Integer; end; implementation class method Hello.Main(args: array of String): Integer; var conStr: String; sqlStr: String; con: OleDbConnection; cmd: OleDbCommand; reader: OleDbDataReader; begin conStr := "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=hello.mdb"; sqlStr := "SELECT 'Hello, ADO.NET World!' AS Message"; con := new OleDbConnection(conStr); cmd := new OleDbCommand(sqlStr, con); con.Open(); reader := cmd.ExecuteReader(); while reader.Read() do begin System.Console.WriteLine( reader.GetName(0) ); System.Console.WriteLine( "---------------------" ); System.Console.WriteLine( reader[0] ); end; reader.Close(); con.Close(); end; end.