[unixODBC-dev] Driver name not recognised in odbc.ini

Nick Gorham nick at lurcher.org
Thu Jun 9 09:24:22 BST 2005


> But when I try to connect thru my application it gives me the following
> error: -
> 
> Failure in Connecting to Database -1
> [unixODBC][CA][ ODBC Driver]Unsupported driver name (0)
> RET CODE IS -1
> 
> However if I have the same entry in my .odbc.ini file which is in my
> home directory, the connection is successful.
> 
> Can somebody point out what could be wrong here?
> 
> 

I would guess the ingres driver is reading the ini files itself instead 
of using libodbcinst so its looking in the home one but not the system 
one. Try setting ODBCINI to point to the system dsn.

The error is coming from the driver, you can see that by the addition of 
the [CA] to the error message.

-- 
Nick



More information about the unixODBC-dev mailing list