Board index » delphi » Finding the path of a database

Finding the path of a database

Hi

I have a database on my datamodule that is connected with a BDE
Access-driver.  Is there any way that I can display the path of where the
database is in Delphi?

thankx alot

Nico

 

Re:Finding the path of a database


TDAtabase.Session.GetAliasParams();

i.e

MyStringList := TStringList.Create;
try
  Session.GetAliasParams('DBDEMOS',MyStringList);
  { fill a list box with driver names for the user to select from }
  ListBox1.Items := MyStringList;
finally
  MyStringList.Free;
end;

Martin

Quote
"newbie" <niba...@hotmail.com> wrote in message news:3b9dfc27_1@dnews...
> Hi

> I have a database on my datamodule that is connected with a BDE
> Access-driver.  Is there any way that I can display the path of where the
> database is in Delphi?

> thankx alot

> Nico

Re:Finding the path of a database


TDatabase.session.GetConfigParams();

Martin Dew

Quote
"newbie" <niba...@hotmail.com> wrote in message news:3b9dfc27_1@dnews...
> Hi

> I have a database on my datamodule that is connected with a BDE
> Access-driver.  Is there any way that I can display the path of where the
> database is in Delphi?

> thankx alot

> Nico

Other Threads