Source Code



Get Database Path With Alias

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

Get database path with its alias

 

With dbiGetDatabaseDesc: 

   uses BDE;
   .....
   procedure ShowDatabaseDesc(DBName: String);
   const
      DescStr = ''Driver Name: %s''#13#10''AliasName: %s''#13#10 +
                ''Text: %s''#13#10''Physical Name/Path: %s'';
   var
     dbDes: DBDesc;
   begin
      dbiGetDatabaseDesc(PChar(DBName), @dbDes);
      with dbDes do
        ShowMessage(Format(DescStr, [szDbType, szName, szText, szPhyName]));
   end;
  • 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



Category