Autor Beitrag
bis11
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1247
Erhaltene Danke: 2

Apple Mac OSX 10.11

BeitragVerfasst: Mo 17.02.03 23:03 
Hi,

ich möchte gerne die Tabellennamen aus einer IB_Datenbank auf einem Linux-Server auslesen. Ich habe folgendes versucht : (Der Sessionname wurde im Obejktinspektor hinterlegt)
ausblenden Quelltext
1:
2:
3:
4:
5:
6:
7:
  tableslist := TStringList.Create;
  IBDataModule.Session.PrivateDir := servername.Text + ':' + serverdirectory.Text;
  try
    IBDataModule.Session.GetTableNames('bisconfig', '*.gdb',False, False, tableslist);
  finally
    tableslist.Free;
  end;


Wenn ich den Code so ausführe kommt die Fehlermeldung Ungültiger Dateiname. Kommentiere ich die Zeile mit PrivateDir aus, kommt die Fehlermeldung Unbekannte Datenbank Alias:bisconfig. Was mache ich verkehrt ?
Lemmy
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 792
Erhaltene Danke: 49

Windows 7 / 10; CentOS 7; LinuxMint
Delphi 7-XE10.1, VS 2015
BeitragVerfasst: Di 18.02.03 08:50 
Hi,

hast Du dir schon mal die IBX angeschaut, speziell die TIBDatabase:

IBDatabase1.GetTableNames();

Grüße
Lemmy
bis11 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1247
Erhaltene Danke: 2

Apple Mac OSX 10.11

BeitragVerfasst: Di 18.02.03 09:18 
Hi,

danke erstmal für Deine Antwort, nee habe ich noch nicht, werde ich aber gleich mal ausprobieren.