Subject Re: Using Firebird With C#
Author Fabio Gomes
Ok, i did some google research, i managed to open a socket, when i opened in
port 80 and sent a GET command it worked so it should be fine.. then i tried
to use firebird with it.. but it didnt work either.. i dont know what more i
can try :(

Here is my code:

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Net;
using System.Net.Sockets;
using FirebirdSql.Data.FirebirdClient;

namespace WindowsApplication1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}

private void Form1_Load(object sender, EventArgs e)
{
Socket sock = new Socket(AddressFamily.InterNetwork,
SocketType.Stream, ProtocolType.Tcp);

sock.Connect("192.168.15.101",3050);

string connectionString =
"User=SYSDBA;" +
"Password=masterkey;" +
"Database=/home/trab/SiadPHP/testes/siad.gdb;" +
"DataSource=192.168.15.101 ;" +
"Port=3050;" +
"Dialect=3;" +
"Charset=ISO8859_1;";

FbConnection myConnection1 = new FbConnection(connectionString);
myConnection1.Open();

}
}
}


[Non-text portions of this message have been removed]