Hello,
we also have this problem. Do you know when the next Version will be released with the fix for this problem?
Best regards,
Chris
Search found 17 matches
- Thu 07 Jan 2016 11:17
- Forum: InterBase Data Access Components
- Topic: TIBCAlerter error after upgrading to 5.6.20
- Replies: 26
- Views: 5807
- Mon 17 Oct 2011 05:15
- Forum: InterBase Data Access Components
- Topic: Record-Alignment and Version 4.0.1
- Replies: 2
- Views: 1126
- Thu 13 Oct 2011 05:48
- Forum: InterBase Data Access Components
- Topic: Record-Alignment and Version 4.0.1
- Replies: 2
- Views: 1126
Record-Alignment and Version 4.0.1
Hello,
we use Delphi 2007 and have IBDAC with Source-Code. Till Version 3.XX everything works fine with our project-options (record-alignment 1 instead of 8 ).
Now with Version 4.X it works only with record-alignment 8.
You can reproduce it with an new project with an Button and an TIBConnection. In the ButtonClick try to connect to any DB.
Set the project-options -> record-alignment to 1. Build and run
Can you please fix this.
Thanks, Chris
we use Delphi 2007 and have IBDAC with Source-Code. Till Version 3.XX everything works fine with our project-options (record-alignment 1 instead of 8 ).
Now with Version 4.X it works only with record-alignment 8.
You can reproduce it with an new project with an Button and an TIBConnection. In the ButtonClick try to connect to any DB.
Set the project-options -> record-alignment to 1. Build and run
Can you please fix this.
Thanks, Chris
- Tue 05 Apr 2011 11:07
- Forum: InterBase Data Access Components
- Topic: TIBCConnection and setting ClientLibrary
- Replies: 10
- Views: 11966
- Tue 05 Apr 2011 06:59
- Forum: InterBase Data Access Components
- Topic: Filebased connection to Databasefile on Networkshare
- Replies: 2
- Views: 1489
Hello,
ok. I know what's wrong
It is not possible in Firebird to access an db on an volumen that is not owned by the maschine where the process is runnig.
But when you use Firebird 2.5 you are able to set an parameter in the firebird.conf to do this.
It's extrem risky to do this - see the comments in firebird.conf for the parameter.
Thats all.
Best regards,
Chris
ok. I know what's wrong
It is not possible in Firebird to access an db on an volumen that is not owned by the maschine where the process is runnig.
But when you use Firebird 2.5 you are able to set an parameter in the firebird.conf to do this.
It's extrem risky to do this - see the comments in firebird.conf for the parameter.
I think there should be an way with extrem careful programming to access the db with this parameter.RemoteFileOpenAbility
Thats all.
Best regards,
Chris
- Mon 04 Apr 2011 13:54
- Forum: InterBase Data Access Components
- Topic: TIBCConnection and setting ClientLibrary
- Replies: 10
- Views: 11966
Hello,
thx for this. But there is one thing.
When I connect to an server with this code everything works fine.
I just copy the DB-File from the server to an folder on the maschine and change the Server and Database-Property as described above, recompile and got this error.
Change this propertys back to the server-connection and everythiong works fine.
And when I do the "Workarround" with SetCurrentDir before and after the connect, I can connect to EMB-Files and also to installed servers.
That is reason for this thread.
THX for help,
Chris
BTW: Here are the changes in the Release Notes for FB 2.5 http://firebirdsql.org/rlsnotesh/rlsnot ... ne-embddll for loading the fbemded.dll. They wrote, that we do not longer have to copy the EMB-Files into the app-directory.
And also in the Mailing-List you can find some programmers who have problems with that http://sourceforge.net/mailarchive/foru ... bird-devel They solved the problem also with
thx for this. But there is one thing.
When I connect to an server with this code
Code: Select all
IBCConnection.Server := 'server';
IBCConnection.Database := 'testdb'; // Alias-Conf in Server
IBCConnection.Connect;
I just copy the DB-File from the server to an folder on the maschine and change the Server and Database-Property as described above, recompile and got this error.
Change this propertys back to the server-connection and everythiong works fine.
And when I do the "Workarround" with SetCurrentDir before and after the connect, I can connect to EMB-Files and also to installed servers.
That is reason for this thread.
THX for help,
Chris
BTW: Here are the changes in the Release Notes for FB 2.5 http://firebirdsql.org/rlsnotesh/rlsnot ... ne-embddll for loading the fbemded.dll. They wrote, that we do not longer have to copy the EMB-Files into the app-directory.
And also in the Mailing-List you can find some programmers who have problems with that http://sourceforge.net/mailarchive/foru ... bird-devel They solved the problem also with
- call SetDllDirectory() on the directory where fbembed.dll is before
calling LoadLibrary(), or
- call LoadLibraryEx() with LOAD_WITH_ALTERED_SEARCH_PATH
- Mon 04 Apr 2011 13:17
- Forum: InterBase Data Access Components
- Topic: Filebased connection to Databasefile on Networkshare
- Replies: 2
- Views: 1489
Filebased connection to Databasefile on Networkshare
Hello,
IBDAC V 3.50.0.21
Firebird 2.5.0 Emb (without installation)
I try to connect to an Databasefile directly
When I call connect (after solving this http://www.devart.com/forums/viewtopic.php?t=20559), everything works fine.
But when I set the Database-Porperty to an File on an Networkdrive e.g. Z:\testdb.db I got this Error:
Do you have any idea what's wrong in this code. Server-Property is blank.
Thanks for help.
Chris
IBDAC V 3.50.0.21
Firebird 2.5.0 Emb (without installation)
I try to connect to an Databasefile directly
Code: Select all
IBCConnection.Server := '';
IBCConnection.Database := 'D:\DBs\testdb.db';
But when I set the Database-Porperty to an File on an Networkdrive e.g. Z:\testdb.db I got this Error:
where SERVER is the Networkshare-Provider.Unable to complete network request to host "SERVER".
Failed to establish a connection.
Do you have any idea what's wrong in this code. Server-Property is blank.
Thanks for help.
Chris
- Mon 04 Apr 2011 09:02
- Forum: InterBase Data Access Components
- Topic: TIBCConnection and setting ClientLibrary
- Replies: 10
- Views: 11966
Hello again
Now, i have got the error again. And I know how to reproduce:
- Blank system (no Firebird-Installation)
- Own application with an subfolder \DBLibs (content is the whole FBEmb-ZIP 2.5.0)
- Setting ClientLibrary of Connection like this
- Connecting filebased to an Database with
So you get an error:
it works perfect.
Do you have any idea, why there is an difference between connecting to an Server and connecting filebased/direct to an DB?
Thanks for help.
Chris
Now, i have got the error again. And I know how to reproduce:
- Blank system (no Firebird-Installation)
- Own application with an subfolder \DBLibs (content is the whole FBEmb-ZIP 2.5.0)
- Setting ClientLibrary of Connection like this
Code: Select all
IBCConnection.ClientLibrary := ExtractFilePath(Application.ExeName) + 'DBLibs\fbembed.dll';
Code: Select all
IBCConnection.Server := '';
IBCConnection.Database := D:\FB_DBs\testdb.db';
IBCConnection.Connect;
If you make an own connect like thisCOLLATION UNICODE_CI for CHARACTER SET UTF8 is not installed (Error: -204)
Code: Select all
function TForm1.OwnConnect: Boolean;
var
origDir: string;
begin
origDir := GetCurrentDir;
try
SetCurrentDir(ExtractFilePath(ExpandFileName(IBCConnection.ClientLibrary)));
IBCConnection.Connect;
// do some other stuff
finally
SetCurrentDir(origDir);
end;
end;
Do you have any idea, why there is an difference between connecting to an Server and connecting filebased/direct to an DB?
Thanks for help.
Chris
- Tue 22 Mar 2011 15:52
- Forum: InterBase Data Access Components
- Topic: TIBCConnection and setting ClientLibrary
- Replies: 10
- Views: 11966
- Tue 22 Mar 2011 09:52
- Forum: InterBase Data Access Components
- Topic: TIBCConnection and setting ClientLibrary
- Replies: 10
- Views: 11966
TIBCConnection and setting ClientLibrary
Hello,
we use IBDAC 3.50.0.21 with Firebird-Emb 2.5.
We don't install the Firebird-Emb-Files on the maschine. We just put all of them (the hole content of the zip-file from FireBird-Emb-ZIP) into an Subfolder DBLibs of the application.
Now we set the property ClientLibrary of the TIBCConnection to this Path
(+'DBLibs\fbembed.dll').
When we call "connect" this doesn't work. Only if we put some code arround connect like this:
Is it possible to make this behavior part of the code from IBDAC. So we don't need to put the hole Firebird-Dlls into the Application-Path.
Thank you for help.
Chris
we use IBDAC 3.50.0.21 with Firebird-Emb 2.5.
We don't install the Firebird-Emb-Files on the maschine. We just put all of them (the hole content of the zip-file from FireBird-Emb-ZIP) into an Subfolder DBLibs of the application.
Now we set the property ClientLibrary of the TIBCConnection to this Path
(+'DBLibs\fbembed.dll').
When we call "connect" this doesn't work. Only if we put some code arround connect like this:
Code: Select all
function TForm1.OwnConnect: Boolean;
var
origDir: string;
begin
origDir := GetCurrentDir;
try
SetCurrentDir(ExtractFilePath(ExpandFileName(FIBCConnection.ClientLibrary)));
FIBCConnection.Connect;
// do some other stuff
finally
SetCurrentDir(origDir);
end;
end;
Thank you for help.
Chris
- Wed 23 Feb 2011 14:26
- Forum: InterBase Data Access Components
- Topic: Which InterBase or Firebird server do you prefer?
- Replies: 6
- Views: 6186
- Wed 23 Feb 2011 10:51
- Forum: InterBase Data Access Components
- Topic: TIBCQuery and RETURNING-Statemant
- Replies: 5
- Views: 1634
Hello AndreyZ,
thx for reply. Work's perfect
Because I have an Before-Insert-DB-Trigger for the generator it's a little simpler:
THX for support
Chris
thx for reply. Work's perfect
Because I have an Before-Insert-DB-Trigger for the generator it's a little simpler:
Code: Select all
FIBCQuery.SQL.Clear;
FIBCQuery.SQL.Add('INSERT INTO mytable (ID, NAME)');
FIBCQuery.SQL.Add('VALUES (:NAME)');
FIBCQuery.SQL.Add('RETURNING ID');
FIBCQuery.Prepare;
FIBCQuery.ParamByName('NAME').AsString := 'test';
FIBCQuery.Execute;
result := FIBCQuery.ParamByName('RET_ID').AsLargeInt;
Chris
- Wed 23 Feb 2011 05:57
- Forum: InterBase Data Access Components
- Topic: TIBCQuery and RETURNING-Statemant
- Replies: 5
- Views: 1634
Hello calou,
thx for help
For all the other who need a solution here is the full code
Chris
thx for help
For all the other who need a solution here is the full code
Code: Select all
FIBCQuery.SQL.Clear;
FIBCQuery.SQL.Add('INSERT INTO mytable (NAME)');
FIBCQuery.SQL.Add('VALUES (:NAME)');
FIBCQuery.SQL.Add('RETURNING ID');
with TParam(FIBCQuery.Params.Add) do
begin
ParamType := ptResult;
DataType := ftLargeint;
Name := 'RET_ID';
end;
FIBCQuery.ParamByName('NAME').AsString := AName;
FIBCQuery.Prepare;
FIBCQuery.Execute;
result := FIBCQuery.ParamByName('RET_ID').Value; // Need Value because ID is BigInt/LargInt/Int64
- Tue 22 Feb 2011 15:28
- Forum: InterBase Data Access Components
- Topic: TIBCQuery and RETURNING-Statemant
- Replies: 5
- Views: 1634
TIBCQuery and RETURNING-Statemant
Hello,
sorry, but I can't find anything in the Help-File or the demos for this "easy" problem.
I use an TIBCQuery to insert data into an Table
The table has an generator for the ID.
The InsertCode is:
How can I get the return value?
I have tried several things:
What is wrong?
I use Delphi 2007 with IBDAC 3.50.19
Chris
sorry, but I can't find anything in the Help-File or the demos for this "easy" problem.
I use an TIBCQuery to insert data into an Table
Code: Select all
MyTable
ID: BigInt;
Name: VarChar(100);
The InsertCode is:
Code: Select all
FIBCQuery.SQL.Clear;
FIBCQuery.SQL.Add('INSERT INTO mytable (NAME)');
FIBCQuery.SQL.Add('VALUES (:NAME)');
FIBCQuery.SQL.Add('RETURNING ID');
FIBCQuery.ParamByName('NAME').AsString := AName;
FIBCQuery.Prepare;
FIBCQuery.Execute;
if FIBCQuery.RecordCount > 0 then
begin
result := FIBCQuery.ParamByName('ID').Value;
end else
begin
result := -1;
end;
I have tried several things:
Code: Select all
FIBCQuery.Options.ReturnParams := TRUE;
//---
FIBCQuery.DMLRefresh := TRUE;
I use Delphi 2007 with IBDAC 3.50.19
Chris
- Wed 23 Jun 2010 09:36
- Forum: InterBase Data Access Components
- Topic: Problems with Demo -> Alerter
- Replies: 4
- Views: 1939