newbie
Osman Çinar Eren
Cinar.Eren at isbank.com.tr
Wed Oct 9 16:47:08 EDT 2002
Hi,
i am on my way to use free-tds.
i selected odbc as the api.
The following call always returns an error immediately, although
freetds.conf has TESTC entry and the env variable,FREETDSCONF is set:
res=SQLConnect(Connection,"TESTC",SQL_NTS,"cinar",SQL_NTS,"cinar",SQL_NTS);
if (res!=SQL_SUCCESS)
{
printf("Unable to open data source (ret=%d)\n",res);
CheckReturn();
exit(1);
}
the error is:
Unable to open data source (ret=-1)
SQL error IM002 -- [unixODBC][Driver Manager]Data source name not found, and
no default driver specified
what do i miss?
thanks in advance.
best regards.
More information about the FreeTDS
mailing list