Thema: Delphi Firebird embedded

Einzelnen Beitrag anzeigen

Ghostwalker

Registriert seit: 16. Jun 2003
Ort: Schönwald
1.299 Beiträge
 
Delphi 10.3 Rio
 
#6

Re: Firebird embedded

  Alt 26. Apr 2004, 14:55
Tja..oder per API direkt

Code:
Procedure CreateDB
var
  fdbname : STRING;
  params : STRING;
  SQLDialect: Integer;
  tr_handle : TISC_TR_HANDLE;
  fhandle : TISC_DB_HANDLE;
  st : PISC_STATUS;
begin
  FDBNAME := 'h:\firebird\test2\test.fdb';
  Params := 'USER "SYSDBA" PASSWORD "masterkey" PAGE_SIZE 4096';
  SQLDialect := 3;
  st := NIL;
  tr_handle := 0;
  fhandle := 0;
  isc_dsql_execute_immediate(st, @FHandle, @tr_handle, 0,
                               PChar('CREATE DATABASE ''' + FDBName + ''' ' + {do not localize}
                               Params), SQLDialect, nil);
end;
Uwe
e=mc² or energy = milk * coffee²
  Mit Zitat antworten Zitat