title: How to connect to a remote Firebird Database in C#
body: <p>I have recently accepted a project from a company. I have to display data from there database. I got the files on my local computer and created a program to their liking but when I replace the path and datasource in the connection string an error occurs. The error reads that </p>
  
  <pre><code>FirebirdSql.Data.FirebirdClient.FbException (0x80004005): Your user name and password are not defined. Ask your database administrator to set up a Firebird login.
  </code></pre>
  
  <p>So afterwards I copied the database on their local pc that has access to this remote server. I changed the connection string to where the DB is located on the local pc. Used the same username and password and then the connection worked. </p>
  
  <p>A littile more about their server. The server is setup for a program which connects to their DB and runs on the server. The company's employees works from this program on their local computers. I do not have direct access to this server since the server does not connect to the internet at all. I used teamviewer to test my program. </p>
  
  <p>So here is my connection string both the remote and local</p>
  
  <p>The connection string that follow is for their network</p>
  
  <pre><code>connectionString = "Server=192.168.1.10;User=sysdba;Password=masterkey;Charser=NONE;Database=\\192.168.1.10\\DB\\DB.fdb";
  </code></pre>
  
  <p>The connection string that follow is for the local pc at the company I tested on using teamviewer.</p>
  
  <pre><code>connectionString = "Server=localhost;User=sysdba;Password=masterkey;Charser=NONE;Database=C:\DB\DB.fdb";
  </code></pre>
  
  <p>NOTE: I am not sure if the program the employees use might interfere with the one I created.</p>