howto open firebird database exclusive
howto open firebird database exclusive
How can I open a firebird database with ibdac in order to add new fields or tables?
There are no special methods to create database objects (tables, fields, etc.) in IBDAC, that's why you should use DDL operators.
You can use the following code to add fields to the table:
You can use the following code to add fields to the table:
Code: Select all
var
IBCConnection: TIBCConnection;
begin
IBCConnection := TIBCConnection.Create(nil);
IBCConnection.Username := 'LOGIN';
IBCConnection.Password := 'PASSWORD';
IBCConnection.Server := 'SERVER';
IBCConnection.Database := 'D:\Path\To\Data\TEST.FDB';
IBCConnection.Connect;
IBCConnection.ExecSQL('ALTER TABLE TEST ADD NEW_FIELD SMALLINT',[]);Hello,
This problem is connected with the Firebird server specifics and cannot be solved with the help of our or any other components.
You can read FAQ concerning exclusive access at http://www.firebirdfaq.org/faq131/.
This problem is connected with the Firebird server specifics and cannot be solved with the help of our or any other components.
You can read FAQ concerning exclusive access at http://www.firebirdfaq.org/faq131/.