Delphi7 Firebird embedded

Forum related to Firebird

Moderators: gto, cipto_kh, EgonHugeist

Post Reply
mcb
Fresh Boarder
Fresh Boarder
Posts: 5
Joined: 09.02.2006, 16:36

Delphi7 Firebird embedded

Post by mcb »

Hi,

when I try to open a database in designtime, I get the message:

SQL-Error : unavailable database. Error Code -904. Unsuccessful exeution caused by an unavailable resource.

When I run the program everything works fine.

I use Delphi 7, fbird embed 1.5.3, zeos 6.5.1 alpha CVS as of 13/10/2005.

Has someone a hint what I am doing wrong?

Thanks McB
User avatar
Domo Sokrat
Fresh Boarder
Fresh Boarder
Posts: 5
Joined: 15.09.2005, 06:19
Location: Halut / Milkyway - Westside

Post by Domo Sokrat »

Hi mcb,

the only existing problem I know is if you are connected to an FB embedded server at design time (ZConnection.active = true) and then start the program from IDE because the database is already in use from IDE.

Using an embedded FB Server you can only connect once to a database! A second connect will cause an exception.

Hope this brings a little light into the dark ;-) btw: Did you read the "FB-Embedded" article in the Knowledge Base? There is a section called "Features of the Firebird embedded server" ...

Regards!
mcb
Fresh Boarder
Fresh Boarder
Posts: 5
Joined: 09.02.2006, 16:36

Post by mcb »

Hi,

sorry, but your post and the article were no help, but thanks for your answer ;)

McB
mcb
Fresh Boarder
Fresh Boarder
Posts: 5
Joined: 09.02.2006, 16:36

Post by mcb »

Hi,

after tons of coffe, a little bit of sleep and two or three beers I have the answer:

I tried out lazarus a while ago and some of the components needed access to the gds32.dll even when launching the ide. So I put this file into the system32 directory. When I now tried to open the database in the Delphi IDE, that file was used to open the database, and there was my error message.

Greetings,
McB
lcnorm
Fresh Boarder
Fresh Boarder
Posts: 1
Joined: 08.08.2006, 19:02

Post by lcnorm »

Hi,

I have the same problem here, it only works in design time if the fbclient.dll
embedded is in the System32 dirctory.
But when it´s in the project directory (as usual) it works fine in runtime.

Regards,
Luciano
leonrom
Fresh Boarder
Fresh Boarder
Posts: 6
Joined: 03.04.2007, 15:53

Post by leonrom »

I found another problem,- it did not recognized codepage win1251 when use Firebird-2 and ZEOSDBO 6.6 for access to embedded database.

I could not to connect to embedded firebird from both ZEOSDBO 6.6/6/5 :cry: But thanks for your job,- ZEOS is a great project and I'll be looking for new stable version!
User avatar
mdaems
Zeos Project Manager
Zeos Project Manager
Posts: 2766
Joined: 20.09.2005, 15:28
Location: Brussels, Belgium
Contact:

Post by mdaems »

Hi leonrom,

What do you mean by 'it did not recognize codepage win1251'?
I suppose you added 'isc_dpb_lc_ctype=WIN1251' to the connection parameters? What 's the error you get? How do you see it doesn't work right?
Did you get the embedded server running with the default character set?

Mark
Post Reply