execute statement on external database on Dbeaver

42 views
Skip to first unread message

Maurizio Alfani

unread,
Nov 14, 2025, 12:08:10 PMNov 14
to firebird-support
Hi.
I use DBeaver 25.2.4.
I open my network DB on 192.XXX.XXX.XXX: trying to execute a SQL block containing the execute statement on a external db results in error message like "unavailable database" or "Unable to complete network request to host "localhost"
The external db is on disk "C:" of my PC.

Could someone point me in the right direction?

Thanks in advance.

Maurizio
P.S.
I add my execute block:

set term ^ ;
execute block
returns(
  POUT varchar(100)
)
as
begin
  execute statement  'select first 1 CS from SOST order by CS'
  on external data source 'localhost:C:\DB_APP MIN\data A\DATA\M.FDB'
  AS USER 'sysdba' PASSWORD 'masterkey'
  into :POUT;
  suspend;
end^
set term ; ^

Vlad Khorsun

unread,
Nov 17, 2025, 11:34:35 AM (12 days ago) Nov 17
to firebird-support
I open my network DB on 192.XXX.XXX.XXX: trying to execute a SQL block containing the execute statement on a external db results in error message like "unavailable database" or "Unable to complete network request to host "localhost"

  This message most often means that Firebird Server is not running on target host or its network listener is blocked 
(by firewall or other way). 
 
The external db is on disk "C:" of my PC.

  Is it the same host as " 192.XXX.XXX.XXX" above ?

Regards,
Vlad

Mark Rotteveel

unread,
Nov 18, 2025, 4:33:53 AM (11 days ago) Nov 18
to firebird...@googlegroups.com
On 14/11/2025 17:38, Maurizio Alfani wrote:
> Hi.
> I use DBeaver 25.2.4.
> I open my network DB on 192.XXX.XXX.XXX: trying to execute a SQL block
> containing the execute statement on a external db results in error
> message like "unavailable database" or "Unable to complete network
> request to host "localhost"
> The external db is on disk "C:" of my PC.

In an execute block, localhost points to the server host you're
currently connected to, so if 192.XXX.XXX.XXX is a different host than
*your* PC, it will not work as you expect.

> Could someone point me in the right direction?
Use the hostname or external IP address of your machine, assuming it's
even accessible from 192.XXX.XXX.XXX.

Mark
--
Mark Rotteveel

Maurizio Alfani

unread,
Nov 18, 2025, 6:10:12 AM (11 days ago) Nov 18
to firebird-support
Hi, Vlad. 
  Is it the same host as " 192.XXX.XXX.XXX" above ?

No, it'snt.
Now I understand the problem.

Thanks a lot for your time.

Regards,
Maurizio

Maurizio Alfani

unread,
Nov 18, 2025, 6:11:25 AM (11 days ago) Nov 18
to firebird-support
Hi Mark.
Thanks a lot for your time.

Best regards,
Maurizio


Reply all
Reply to author
Forward
0 new messages