Skip to Content.
Sympa Menu

freetds - RE: [freetds] tds_submit_query allways returns TDS_SUCCEED

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "Lowden, James K" <LowdenJK AT bernstein.com>
  • To: 'FreeTDS Development Group' <freetds AT lists.ibiblio.org>
  • Subject: RE: [freetds] tds_submit_query allways returns TDS_SUCCEED
  • Date: Mon, 20 Oct 2003 10:48:15 -0400

> From: James Reed [mailto:t519008_new AT hotmail.com]
> Sent: October 20, 2003 5:23 AM
>
> I am new to freeTDS (which is a really great package by the
> way!!!)

Welcome.

> I have
> just put together a simple test program using some of the
> stuff from the
> unittests catalog. It seems that I allways get TDS_SUCCEED
> back from the tds_submit_query.

When you get TDS_SUCCEED from tds_submit_query(), it means only that the
query was dispatched to and received by the server. Message acknowledged.
No error in transmission.

What the server does with your query is a different question. A TDS
conversation is very polite; after you're done transmitting your message,
you're obliged to listen to the server's answer(s). When you do, if all is
well, you'll get a TDS_DONE packet back. If not, you'll get TDS_ERROR
first, then TDS_DONE. The error will include an error number and
explanatory text.

Unless you have a very good reason, btw, I recommend you not use libtds
directly. We don't consider it a public interface, and it changes at our
convenience. The db-lib, ct-lib, and ODBC client libraries are much better
suited to application programming. db-lib, for instance, lets you install a
callback function to handle error messages sent by the server.

Hoppas det blir klar nu.

--jkl


-----------------------------------------
The information contained in this transmission may contain privileged and
confidential information and is intended only for the use of the person(s)
named above. If you are not the intended recipient, or an employee or agent
responsible for delivering this message to the intended recipient, any
review, dissemination, distribution or duplication of this communication is
strictly prohibited. If you are not the intended recipient, please contact
the sender immediately by reply e-mail and destroy all copies of the original
message. Please note that we do not accept account orders and/or instructions
by e-mail, and therefore will not be responsible for carrying out such orders
and/or instructions.






Archive powered by MHonArc 2.6.24.

Top of Page