Source Code



Get database path with its alias

  • anonymous
  • Dec 14' 13
  • Delphi
  • 234
  • 113
  • United States

Title: Get database path with its alias

Question: Get database path with its alias

Answer:

 

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 : database, full, path
comments powered by Disqus



Category

Tag Linked