Source Code

Get Database Path With Alias

  • anonymous
  • Dec 20' 13
  • Delphi
  • 183
  • 196
  • United States

Get database path with its alias


With dbiGetDatabaseDesc: 

   uses BDE;
   procedure ShowDatabaseDesc(DBName: String);
      DescStr = ''Driver Name: %s''#13#10''AliasName: %s''#13#10 +
                ''Text: %s''#13#10''Physical Name/Path: %s'';
     dbDes: DBDesc;
      dbiGetDatabaseDesc(PChar(DBName), @dbDes);
      with dbDes do
        ShowMessage(Format(DescStr, [szDbType, szName, szText, szPhyName]));
  • Tags : delphi, database, alias, path
comments powered by Disqus

Related Code

SQL data to Excel

Execute a JavaScript Code on a TWebBrowser Document

Save a StringGrid as a CSV file

Empty Recylce Bin

Get MAC Address of Network Card

Kill Active Program

Resizable forms and size grip

Simple Like Function

Suspend the PC

Get current url