Autor Beitrag
Carla
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 111
Erhaltene Danke: 2



BeitragVerfasst: Fr 21.05.10 12:53 
Hallo,

über IBDac möchte ich eine neue Datenbank anlegen.

Also
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
Connection.Params.Clear;
Connection.Params.Add('USER "SYSDBA"');
Connection.Params.Add('PASSWORD "masterkey"');
Connection.Params.Add('PAGE_SIZE 4096');
Connection.CreateDatabase;


Auf Connection habe ich als CHARACTER SET ISO8859_1 eingestellt.
Diese Einstellung (unter Optionen) wird jedoch nicht als Default CHARACTER SET der Datenbank übernommen.
Kann mir wer auf die Sprünge helfen, wie ich beim Erzeugen der Datenbank oder danach ein Default Character Set einstellen kann?

Für einen Tip dankbar.

Gruß
Carla
uko
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 220
Erhaltene Danke: 1

Win XP, VISTA, WIndows 7
Delphi 2007/2010 Prof
BeitragVerfasst: Fr 21.05.10 14:00 
Probiers mal damit:

ausblenden Delphi-Quelltext
1:
  Connection.Params.Add('DEFAULT CHARACTER SET ISO8859_1');					



Grüße,
Uli
Carla Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 111
Erhaltene Danke: 2



BeitragVerfasst: Fr 21.05.10 21:33 
user profile iconuko hat folgendes geschrieben Zum zitierten Posting springen:
Probiers mal damit:
ausblenden Delphi-Quelltext
1:
  Connection.Params.Add('DEFAULT CHARACTER SET ISO8859_1');					

Vergaß ich zu sagen. Das habe ich natürlich ausprobiert, kommt ein SQL Fehler -104.
Gruß
Carla

Moderiert von user profile iconNarses: Zitat repariert.
uko
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 220
Erhaltene Danke: 1

Win XP, VISTA, WIndows 7
Delphi 2007/2010 Prof
BeitragVerfasst: Di 25.05.10 08:16 
Wie hast Du es denn getestet? Hab bei mir mit
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
  IBCConnection1.Database := 'd:\dev-db\testdb.fdb';
  IBCConnection1.ClientLibrary := 'fbclient.dll';
  IBCConnection1.Params.Clear;
  IBCConnection1.Params.Add('USER ''SYSDBA''');
  IBCConnection1.Params.Add('PASSWORD ''masterkey''');
  IBCConnection1.Params.Add('PAGE_SIZE 4096');
  IBCConnection1.Params.Add('DEFAULT CHARACTER SET ISO8859_1');
  IBCConnection1.CreateDatabase;

die DB erstellt und wenn ich dann mit
ausblenden SQL-Anweisung
1:
select * from rdb$database;					

nachschaue, steht korrekt ISO8859_1 als Default drinnen.