Page 1 of 1
About Database path establish set.
Posted: Fri 25 Aug 2006 02:33
by ibdac1pro
IBCConnection1.Database := '.\DATA\TEST.FDB';
IBCConnection1.Connected := True;
Error occurr!
I/O error for file ".\DATA\TEST.FDB"
Error while trying to open file
But this statement is no error.
IBCConnection1.Database := 'C:\Program files\DATA\TEST.FDB';
IBCConnection1.Connected := True;
I want below statement.
IBCConnection1.Database := '.\DATA\TEST.FDB';
Impossible?
If so, please support.
Posted: Mon 28 Aug 2006 07:18
by Alex
Please specify your application path, also you should know that ".\DATA\TEST.FDB" is equal to "\DATA\TEST.FDB". If you need to access database in the parent directory you need to use "..\DATA\TEST.FDB" instead.
Posted: Thu 31 Aug 2006 00:23
by ibdac1pro
IBCConnection1.Database := '\DATA\TEST.FDB';
or
IBCConnection1.Database := '..\DATA\TEST.FDB';
Error occurrence, too.
I/O error for file "\DATA\TEST.FDB"
Error while trying to open file.
Please test and reply....
Posted: Thu 31 Aug 2006 06:41
by Alex
Please specify your application path. To do this place button on the main application form and fill OnClick event with the following code:
Code: Select all
ShowMessage(ExtractFileDir(Application.ExeName));
Also send us small sample project that demonstrates your problem.
Posted: Sat 02 Sep 2006 07:37
by ibdac1pro
Application path: c:\program files
Data path: c:\program files\DATA
How set relation path?
ex)
IBCConnection1.Database := '.\DATA\TEST.FDB';
Please reply.
We are urgent!
Posted: Sat 02 Sep 2006 08:45
by Alex
This problem can be caused by accessing database through network protocol. You should know that you can use relative database path only with local database connection. If you set IBCConnection.Server to any value (even localhost) then IBCConnection.Database must be full path to database file.
If your problem persists then please send us small demo project to IBDAC support address.