CLI Application: Still "The database directory cannot be found" - why? -
08-15-2003
, 07:23 AM
Hello everybody
I used SQLConnect() in my linux cli application to connect to a
datasource. But I get this Error
SQL1031N The database directory cannot be found on the indicated file
system. SQLSTATE=58031
I did a research on the net but didn't find anything that would help
me. I already recataloged the database. I ensured that the file
sqldbdir is readable to everyone. Other Applications connect to this
DB an use it without any problems. I run my cli app locally on the
server.
But SQLDataSources() is able to lists all Databases.
My cli code is called out of a java stored procedure.
Maybe someone can see what I missed?
Thank you very much.
Re: CLI Application: Still "The database directory cannot be found" - why? -
08-18-2003
, 05:20 AM
When I execute the very same methods using a simple java program, it
works correctly.
It fails to find the database directory only if the code is used by a
stored procedure.