Re: Cross compilation with mingw

Cesare Leonardi <[email protected]>
Newsgroups gmane.comp.db.tds.freetds
Message-ID <CA+h1Z63u1D2_q1SBH00Ewqw61oJjJDkzzkKrnhfJ9fvs7so5uQ@mail.gmail.com>
2011/7/18 Cesare Leonardi <[email protected]>:
> I've forgotten to add that if i run the corresponding command using
> the osql.exe integrated with MSSQL 2000 i obtain a different error:
> osql -D test -U user -P pass
> [Driver Manager ODBC] Funzione SQLSetConnectAttr del driver non riuscita.
>
> Translated: Driver's SQLSetConnectAttr failed.

I can't understand where is the problem: in the driver i've compiled,
on the ODBC settings, a bug?

Under Windows when the user guide talks about odbc.ini file, i guess i
should consider the corresponding settings inside the registry, the
ones i set in the DSN properties, right? The odbc.ini cited in the
guide is the one used by unixODBC and i suppose it souldn't be created
under Windows.
But then, when i use a connect string that call a system DSN, where
does it get searched? In the registry? In FreeTDS.conf?

What i would obtain is the PHP's PDO_ODBC module to use FreeTDS rather
than the MS driver, so i can have a consistent behaviour between
Windows and Linux. And i expect that the osql bundled with MSSQL
should works too.

I'm confused and i hope to find here some light.

Cesare.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.