Skip to Content.
Sympa Menu

freetds - RE: newbie

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Osman Çinar Eren <Cinar.Eren AT isbank.com.tr>
  • To: 'TDS Development Group' <freetds AT franklin.oit.unc.edu>
  • Subject: RE: newbie
  • Date: Wed, 9 Oct 2002 15:47:08 +0300


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.




Archive powered by MHonArc 2.6.24.

Top of Page