Subject | Re: Using Firebird With C# |
---|---|
Author | Adam |
Post date | 2006-03-15T23:06:40Z |
> Ok, i did some google research, i managed to open a socket, when iopened in
> port 80 and sent a GET command it worked so it should be fine.. theni tried
> to use firebird with it.. but it didnt work either.. i dont knowwhat more i
> can try :(Well thats nice but it is of no interest.
It tells you there is a webserver running, but that does not mean that
Firebird is running. Firebird does not listen to port 80, it listens
to 3050 so that is what you needed to test. In any case I can see you
have since resolved it.
Adam
>FbConnection(connectionString);
> 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
> myConnection1.Open();
>
> }
> }
> }
>
>
> [Non-text portions of this message have been removed]
>