TIBCConnection properties
Posted: Tue 08 Jan 2013 18:19
Hi
I am a new user of IBDAC and would like to create a Firebird database programmatically. From searching your forums I came up with (After placing components IBCConnection and IBCScript on the form)
I know it sounds stupid but what do I enter as Server property on the TIBCConnection component. I have a Firebird server on port 3050 and an Interbase Server on port 3053. I do not believe the servers have names and where do I enter the port number that the server is listening on? Also, how does the above know that it is a Firebird database that is to be created.
Is there any documentation that could assist me in this?
Regards
I am a new user of IBDAC and would like to create a Firebird database programmatically. From searching your forums I came up with (After placing components IBCConnection and IBCScript on the form)
Code: Select all
IBCScript1.Connection := IBCConnection1;
IBCScript1.NoPreconnect := True;
IBCScript1.SQL.Text :=
'CREATE DATABASE ''D:\Data\test.fdb'' ' +
'USER ''SYSDBA'' PASSWORD ''masterkey'' PAGE_SIZE 16384 DEFAULT CHARACTER SET UTF8;';
IBCScript1.Execute;
Is there any documentation that could assist me in this?
Regards