Subject | Re: Embedded FB1.5 Doesn't Like "localhost". |
---|---|
Author | barfingdog_2004 |
Post date | 2004-04-16T19:17:06Z |
--- In firebird-support@yahoogroups.com, "Carlos H. Cantu"
<listas@w...> wrote:
I've been looking at the release notes, but I
don't understand exactly what I need to do.
I'm using the IBPP interface, thanks for the
advice everyone, and this is the fragment of my
code that causes the problme:
----------------
database_id = IBPP::DatabaseFactory(DB_SERVER_NAME,
database_path_and_name,
DB_USER_NAME,
DB_PASSWORD,
"", "",
"PAGE_SIZE 8192");
database_id->Connect();
-----------------
database_path_and_name is:
E:\larryl\usr\work\ ... \database\xxx.fdb
If I pass a NULL pointer instead of the server
name I get some non-IBPP trap.
If I set the DB_SERVER_NAME to "", I get this
error:
---------------
populate_players_list()
*** IBPP::Exception inside Database::Connect ***
IBPP Message : isc_attach_database failed
SQL Message : -904
Unsuccessful execution caused by an unavailable resource..
Engine Code : 335544375
Engine Message :
unavailable database
---------------
I'm sure I need a local connection to the database.
How do I do that?
Thanks
Larry
<listas@w...> wrote:
> To connect to embedded server you cannot use localhost, you must useThanks Carlos:
> local connection.
>
> Carlos
I've been looking at the release notes, but I
don't understand exactly what I need to do.
I'm using the IBPP interface, thanks for the
advice everyone, and this is the fragment of my
code that causes the problme:
----------------
database_id = IBPP::DatabaseFactory(DB_SERVER_NAME,
database_path_and_name,
DB_USER_NAME,
DB_PASSWORD,
"", "",
"PAGE_SIZE 8192");
database_id->Connect();
-----------------
database_path_and_name is:
E:\larryl\usr\work\ ... \database\xxx.fdb
If I pass a NULL pointer instead of the server
name I get some non-IBPP trap.
If I set the DB_SERVER_NAME to "", I get this
error:
---------------
populate_players_list()
*** IBPP::Exception inside Database::Connect ***
IBPP Message : isc_attach_database failed
SQL Message : -904
Unsuccessful execution caused by an unavailable resource..
Engine Code : 335544375
Engine Message :
unavailable database
---------------
I'm sure I need a local connection to the database.
How do I do that?
Thanks
Larry