I'm doing a system in Delphi 2010 with Firebird 2.5 that I select a database and I need to pass the local path to my Database on my Sqlconnection.
procedure TFormImportDados.btnBuscaArquivoClick(Sender: TObject);
begin
OpenDialog.Execute();
txtArquivo.Text := OpenDialog.FileName;
with SQLCon do
begin
close;
ConnectionName := 'localhost:' + txtArquivo.Text;
DriverName := 'Firebird';
LibraryName := 'dbxfb.dll';
GetDriverFunc := 'getSQLDriverINTERBASE';
VendorLib := 'fbclient.dll';
end;
end;
procedure TFormImportDados.FormShow(Sender: TObject);
begin
SimpleDataSet.Close;
SimpleDataSet.Open;
end;
I'm not sure how to do this correctly.