Skip to Content.
Sympa Menu

freetds - [freetds] affected rows

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: kris AT bobbl.be
  • To: freetds AT lists.ibiblio.org
  • Subject: [freetds] affected rows
  • Date: Mon, 12 Feb 2007 18:14:05 +0100 (CET)

Hi,

I am trying to retrieve the affected rowcount from an mssql2k server with
freetds, how is that done with the latest version ?

I manage to get resultsets, recordsets and rows from select statements.

Here is what I do :
while ((rc = tds_process_tokens(pSocket, &res_type, &done_flags,
TDS_TOKEN_RESULTS|TDS_RETURN_ROWFMT|TDS_RETURN_COMPUTEFMT|TDS_RETURN_DONE|TDS_STOPAT_ROW|TDS_STOPAT_COMPUTE|TDS_RETURN_PROC))
== TDS_SUCCEED) {
printf("%i\n", res_type);
printf("%p\n", pSocket->res_info);

but it always returns pSocket->res_info nil, what am i missing ?

Thanks,

Kris






Archive powered by MHonArc 2.6.24.

Top of Page