Subject | Using Firebird With C# |
---|---|
Author | Fabio Gomes |
Post date | 2006-03-15T17:04:54Z |
Hi guys, i just started using C# and Visual Studio, i use firebird with php
and its very simple to work with, but i m having some trouble to make it
work with C#.
I tried this:
private void Form1_Load(object sender, EventArgs e) {
string connectionString = "Database=
192.168.15.101:/home/trab/SiadPHP/testes/siad.gdb
;User=SYSDBA;Password=masterkey;Dialect=3;";
FbConnection cnn = new FbConnection(connectionString);
FbDataAdapter da = new FbDataAdapter("SELECT * FROM
RDB$RELATIONS", cnn);
DataTable dt = new DataTable("RELATIONS");
da.Fill(dt);
da.Dispose();
dataGrid1.DataSource = dt;
}
But it gives me this error:
"Unable to complete network request to host 192.168.15.101"
I think that i m missing something on the installation or something like
that... i never used .NET, C# and Visual Studio Before.
I added this:
using FirebirdSql.Data.FirebirdClient;
And it seens to work, but i cant connect and i cant find anything about it
on the internet.
Please anyone here works with it and could help me?
Thanx in advance.
[Non-text portions of this message have been removed]
and its very simple to work with, but i m having some trouble to make it
work with C#.
I tried this:
private void Form1_Load(object sender, EventArgs e) {
string connectionString = "Database=
192.168.15.101:/home/trab/SiadPHP/testes/siad.gdb
;User=SYSDBA;Password=masterkey;Dialect=3;";
FbConnection cnn = new FbConnection(connectionString);
FbDataAdapter da = new FbDataAdapter("SELECT * FROM
RDB$RELATIONS", cnn);
DataTable dt = new DataTable("RELATIONS");
da.Fill(dt);
da.Dispose();
dataGrid1.DataSource = dt;
}
But it gives me this error:
"Unable to complete network request to host 192.168.15.101"
I think that i m missing something on the installation or something like
that... i never used .NET, C# and Visual Studio Before.
I added this:
using FirebirdSql.Data.FirebirdClient;
And it seens to work, but i cant connect and i cant find anything about it
on the internet.
Please anyone here works with it and could help me?
Thanx in advance.
[Non-text portions of this message have been removed]