![]() |
Re: Firebird-Datenbank per Code erstellen
Hallo,
ich habe jetzt mal ein bisschen gesucht und den folgenden ![]() Edit: Jiiiiipieeeee :firejump: Ich habs geschafft. So funktioniert es mit einem Server:
Delphi-Quellcode:
Edit2: Das FileExists aus dem Sourcecode entfernt, kann auf Server nicht angewendet werden.
procedure TForm18.Btn_1Click(Sender: TObject);
begin with ZConnection1 do begin if not Connected then // try to create it on connection Properties.Add(format('createNewDatabase=CREATE DATABASE %s USER %s PASSWORD %s', [QuotedStr(HostName + ':' + Database), QuotedStr(ZConnection1.User), QuotedStr(ZConnection1.Password)])); Connect; end; end; |
Alle Zeitangaben in WEZ +1. Es ist jetzt 16:07 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz