Page 1 of 1

Uniconnection + firebird embeded

Posted: Fri 30 Jan 2015 12:17
by Suhaimin
Hello,

can someone give example how to connect with Uniconnection + Uniquery to firebird embeded in delphi ? thanks

Re: Uniconnection + firebird embeded

Posted: Fri 30 Jan 2015 16:57
by FredS
TestConnection.ProviderName := 'InterBase';
TestConnection.Server := EmptyStr;
TestConnection.Database :=AppPath + 'db\database.fdb';
TestConnection.Username := 'SYSDBA';
TestConnection.Password := 'masterkey';
TestConnection.SpecificOptions.Values['InterBase.ClientLibrary'] := AppPath + 'db\fb\fbclient.dll';
TestConnection.Connect;
if TestConnection.Connected then
begin
ShowMessage('Connection Successful!');
TestConnection.close;
end;

Re: Uniconnection + firebird embeded

Posted: Sat 31 Jan 2015 12:12
by Suhaimin
I have connected TUnitable to TUniconnection and TDbgrid. why i cannot direct insert data into Tdbgrid? database firebird embeded.Tunitable.readonly := false. thanks

Re: Uniconnection + firebird embeded

Posted: Mon 02 Feb 2015 08:32
by ViktorV
Please describe the problem in more details: you can't insert a record, an error is generated when inserting a record, your changes are not applied.

Re: Uniconnection + firebird embeded

Posted: Mon 02 Feb 2015 14:02
by Suhaimin
Hello,

No error occurs.just I cannot press any key in TCRDBgrid like TCRDgrid.readonly OR TUnitable readonly, but if i use TUniquery i can press any key in TCRDgrid( insert data is ok).whats wrong with TUnitable? thanks

Re: Uniconnection + firebird embeded

Posted: Tue 03 Feb 2015 05:41
by ViktorV
Unfortunately, we could not reproduce the issue. Please send a small sample to demonstrate the issue to viktorv*devart*com, including a script to create and fill in the test database object.