0
I am using Delphi 10.2, and I am trying to display the list of tables of an Access database.
My BD path is higher than 128 characters...
Way of my comic:
pathbd := "C: basedata.......... data.mdb" (> 128 characters)
How I’m using:
var
FDataBase : TFDConnection;
begin
FDataBase := TFDConnection.Create(nil);
try
FDataBase.DriverName := 'MSACC';
FDataBase.Params.Add('Database='+pathbd);
FDataBase.Params.Add('LoginPrompt=False');
FDataBase.Params.Add('OpenMode=ReadWrite');
FDataBase.GetTableNames('', '', '', Memo.Lines);
finally
FDataBase.free;
end;
end;
Error that is returned:
"Raised Exception class Efdexception with message '[Firedac][Dats]-32. Variable length column [CATALOG_NAME] overflow. Value length - [188], column Maximum length - [128]'.
How can I get around this problem?
Sorry for the obvious option, but is there a possibility to change the directory of the bank? or abbreviate the nomenclature, making the address smaller?
– Michel Ailton
Thank you for your intervention. The problem is this, the user has the freedom to put the database without limitations.
– Jorge Elias