Thema: Delphi Firebird Connect Problem

Einzelnen Beitrag anzeigen

Benutzerbild von Jens Schumann
Jens Schumann

Registriert seit: 27. Apr 2003
Ort: Bad Honnef
1.644 Beiträge
 
Delphi 2009 Professional
 
#2

Re: Firebird Connect Problem

  Alt 18. Apr 2005, 09:42
Hallo,
versuch esmal so
Delphi-Quellcode:
procedure TfHaupt.btDBErstellenClick(Sender: TObject);
var
  db: string;
begin
  db := '127.0.0.1:C:\Programme\Firebird\Firebird_1_5\Daten\test.fdb';
  ZConnection.Database := db;
  ZConnection.Protocol := 'firebird-1.5';
  ZConnection.Properties.Add('CreateNewDatabase=CREATE DATABASE ' +
    QuotedStr(db) +
    ' USER ' + QuotedStr('SYSDBA') +
    ' PASSWORD ' + QuotedStr('12345') +
    ' PAGE_SIZE 4096 DEFAULT CHARACTER SET ISO8859_1');
  try
    ZConnection.Connect;
  except
  end;
end;
Mit Firebird hatte ich schon öfter Probleme wenn ich hOast nicht angegeben habe.
Mit Host fuinktionierte es immer prächtig.
I come from outer space to save the human race
  Mit Zitat antworten Zitat