Hi Mark,
 
Yes this is correct when using the BDE. (as far as I know) Interbase must be connected by an Alias.  You could use the IB components and then you can specify a filename to open.
 
Alternatively you could create dialog that creates a temp alias in the BDE which points to the Interbase db selected.
 
var
  MyList: TStringList;
begin
  MyList := TStringList.Create;
  try
    with MyList do
    begin
      Add('SERVER NAME=IB_SERVER:/PATH/DATABASE.GDB');
      Add('USER NAME=MYNAME');
    end;
    Session1.AddAlias('NewIBAlias', 'INTRBASE', MyList);
  finally
    MyList.Free;
  end;
end;
 
Thanks,
David Smith.
  -----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Mark Howard
Sent: Thursday, 21 June 2001 12:57 PM
To: Multiple recipients of list delphi
Subject: [DUG]: Connecting to Interbase

Hi
With my Paradox database I could just use an OpenFileDialog to point to a file in the Database directory to set this before opening tables.  ie I did not have to have an Alias set up in the BDE.
 
It seems that to connect to Interbase (at this stage using the BDE) I must have an Alias set up.
 
Can someone confirm this for me please (it might save a lot of time wasting for me trying to do what can't be done)
 
TIA
 
Mark

Reply via email to