title: How to connect in a firebird database in execution time?
body: <p>I'm having a hard time to make my code work. I want to connect to a database with my application in Delphi 7, but if I change the folder of the application, for example, if I install in another computer, my datamodule stops working. The error is: </p>
  
  <blockquote>
    <p>Raised exception class EdatabaseError with message "Missing Drivername propriety"</p>
  </blockquote>
  
  <p>My actual code is:</p>
  
  <pre><code>procedure TDataModule1.DataModuleCreate(Sender: TObject);
  var
    conexao : TSQLConnection;
  begin
     with SQLConnection1 do
      begin
          ConnectionName := 'SKY';
          DriverName := 'Interbase';
          LibraryName := 'dbexpint.dll';
          VendorLib := 'gds32.dll';
          GetDriverFunc := 'getSQLDriverINTERBASE';
          LoadParamsOnConnect := true;
          LoginPrompt := False;
          Params.Add('Database='+ExtractFilePath(Application.ExeName)+'\Banco\FLY_SKY_DESK.FDB');
          Params.Add('User_Name=SYSDBA');
          params.Add('Password=masterkey');
          Params.Add('SQLDialect=3');
          Open;
      end;
        SQLConnection1.Connected:=true;
  end;
  </code></pre>
  
  <p>I want to connect to the database using my .exe, on any path or install location.</p>