Anbindung Firebird 2.5 an List & Label

Gilt ab List & Label 16
Der u.a. Beispiel-Code verdeutlicht die Anbindung des Datenbankmanagementsystems "Firebird 2.5" an List & Label. Benötigt wird hierfür der Firebird ADO.NET Data Provider, welcher direkt über Firebird heruntergeladen werden kann. Als nächstes muss nur noch die Assembly "FirebirdSql.Data.FirebirdClient" im aktuellen Projekt referenziert werden. Ist dies erfolgreich geschehen, dann kann der Connection-String zur Anbindung an die von Firebird mitgelieferte Beispiel-Datenbank "EMPLOYEE.FDB" wie folgt aussehen:

C#:
private void Form1_Load(System.Object sender, System.EventArgs e)
{

  string connectionString = "Database=C:\\PROGRAM FILES\\FIREBIRD\\FIREBIRD_2_5\\EXAMPLES\\EMPBUILD\\EMPLOYEE.FDB;User=SYSDBA;Password=masterkey;Dialect=3;Server=localhost";
  IDbConnection dbcon = new FbConnection(connectionString);
  dbcon.Open();
  IDbCommand dbcmd = dbcon.CreateCommand();
  string sql = "SELECT * FROM employee";
  dbcmd.CommandText = sql;
  LL.SetDataBinding(dbcmd, "");

} 


VB.NET:

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

  Dim connectionString As String = "Database=C:\PROGRAM FILES\FIREBIRD\FIREBIRD_2_5\EXAMPLES\EMPBUILD\EMPLOYEE.FDB;User=SYSDBA;Password=masterkey;Dialect=3;Server=localhost"
  Dim dbcon As IDbConnection = New FbConnection(connectionString)
  dbcon.Open()
  Dim dbcmd As IDbCommand = dbcon.CreateCommand()
  Dim sql As String = "SELECT * FROM employee"
  dbcmd.CommandText = sql
  LL.SetDataBinding(dbcmd, "")

End Sub 

Links:

http://www.firebirdsql.org/en/firebird-2-5/
http://www.firebirdsql.org/en/net-provider/
IDKBTD000822 KBTD000822