// Collection of code snippets by Arne Vajhøj // (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) using System; using System.Data; using FirebirdSql.Data.Firebird; namespace E { public class TestClass { public static void Main(string[] args) { FbConnection con = new FbConnection("ServerType=1;Database=TestEmb.fdb;User=sysdba;Password=masterkey"); con.Open(); FbCommand sel = new FbCommand("SELECT * FROM tbl", con); FbDataReader rdr = sel.ExecuteReader(); while(rdr.Read()) { Console.WriteLine((int)rdr[0] + " " + (string)rdr[1]); } rdr.Close(); con.Close(); } } }