[unixODBC-support] unixODBC2.3.1 connection to ms sql server 2008 R2

Nick Gorham nick at lurcher.org
Thu Jan 5 01:10:40 GMT 2012

On 04/01/2012 12:19, Duncan Kerr wrote:
> Im having problems connecting from C++, even though I can connect via 
> my DSN with isql.  MS sqlcmd works fine, and the driver/unixODBC seem 
> to be installed correctly.  My code fails wioth SQL_INVALID_HANDLE 
> returned by  SQLDriverConnect because the internal list of connections 
> is empty (__validate_dbc( connection ) fails) . Here are details of my 
> system and code.  Any suggestions would be greatfully accepted.

I would turn on driver manager logging and see if that shows anything 

in odbcinst,ini

Trace = yes
TraceFile = /tmp/sql.log

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.unixodbc.org/pipermail/unixodbc-support/attachments/20120105/a208a463/attachment-0001.html>

More information about the unixODBC-support mailing list