Delphi Tips&Tricks News   Tips   .NET Software   VCL Software   Search   Contacts
Ultimate Pack - special offer!

Ultimate Pack  hot!
Image Editor  new!
Runtime Fusion
Form Designer
Object Inspector
Print Suite Pro
Commented Image
Delphi Toys
WinDowse
Delphi Bonus
TMS Scripter Studio
Form Designer VB
Form Designer .NET

...get more...
for Delphi.NET, C#, VB.NET
for Delphi VCL, BCB 3-6

WinAPI Online
Unix Manual Pages
MegaDetailed.NET
in3steps.com
cdtrrracks.com new!

Blogspot  greatis.blogspot.com

Get directory from BDE-alias - Databases - Tips & Tricks - Greatis Delphi Pages

You can use GetAliasParams method of TSession:
Session.GetAliasParams(AliasName, StringList)
or DbiGetDatabaseDesc of DBIProcs:


uses  DBIProcs, DBITypes;
...
procedure TForm1.Button2Click(Sender: TObject);
var
  StringList: TStringList;
  DbDes: DBDesc;
begin
  StringList:=TStringList.Create;
  try
    Check(DbiGetDatabaseDesc(PChar(AliasName2.Text), @DbDes));
    with DbDes do
    begin
      StringList.Add('Driver Name: '+szDbType);
      StringList.Add('AliasName: '+szName);
      StringList.Add('Text: '+szText);
      StringList.Add('Physical Name/Path: '+szPhyName);
    end;
    ListBox2.Items:=StringList;
  finally
    StringList.Free;
  end;
end;
Related topics
Define BDE alias
Create DB file at runtime
Copy and delete table

For more
BDE Online Reference

Download source