freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
- From: Fernando <fer.pantaneiro AT gmail.com>
- To: freetds AT lists.ibiblio.org
- Subject: [freetds] Problem with connection.
- Date: Tue, 5 Jan 2010 17:00:40 -0300
Hi folks,
I'm new in the FreeTDS world, and I'm building my first app with it.
But I'm having a problem whit the "dbopen" function. When the app call
it, the function return an error and the message: "FreeTDS: db-lib:
exiting because client error handler returned 0 for msgno 20009".
Does anyone knows what this error message mean??
Regards,
Fernando Castro
Using openSUSE 11.2 "Emerald" and kernel 2.6.31.5-0.1-default.
---------------------------------- My code -------------------------
if (dbinit() == FAIL)
{
fprintf(stderr, "page1.c %d: dbinit() failed\n", __LINE__);
exit(1);
}
if ((login = dblogin()) == FAIL)
{
fprintf(stderr, "ERROR! dblogin() page1.c.\n");
return FALSE;
}
DBSETLUSER(login, login_t.username);
DBSETLPWD(login, login_t.password);
if (gethostname(hostname, max_len) == 0)
DBSETLHOST(login, hostname);
/* works fine until here, then I got the error here, not even enter in
the if statement */
if ((dbconn = dbopen(login, DBSERVER)) == NULL)
{
fprintf(stderr, "ERROR! dbopen() page1.c.\n");
return FALSE;
}
-
[freetds] Problem with connection.,
Fernando, 01/05/2010
- Re: [freetds] Problem with connection., James K. Lowden, 01/05/2010
- <Possible follow-up(s)>
-
Re: [freetds] Problem with connection.,
ikorot, 01/05/2010
- Re: [freetds] Problem with connection., Fernando, 01/05/2010
- Re: [freetds] Problem with connection., ikorot, 01/05/2010
-
Re: [freetds] Problem with connection.,
ikorot, 01/05/2010
-
Re: [freetds] Problem with connection.,
Fernando, 01/13/2010
-
Re: [freetds] Problem with connection.,
James K. Lowden, 01/18/2010
-
Re: [freetds] Problem with connection.,
Frediano Ziglio, 01/19/2010
-
Re: [freetds] Problem with connection.,
James K. Lowden, 01/20/2010
- Re: [freetds] Problem with connection., Frediano Ziglio, 01/21/2010
-
Re: [freetds] Problem with connection.,
James K. Lowden, 01/20/2010
-
Re: [freetds] Problem with connection.,
Frediano Ziglio, 01/19/2010
-
Re: [freetds] Problem with connection.,
James K. Lowden, 01/18/2010
-
Re: [freetds] Problem with connection.,
Fernando, 01/13/2010
Archive powered by MHonArc 2.6.24.