Skip to Content.
Sympa Menu

freetds - Re: Stored Procedures & MSSQL & CTLIB

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "Lowden, James K" <LowdenJK AT bernstein.com>
  • To: "'TDS Development Group'" <freetds AT franklin.metalab.unc.edu>
  • Subject: Re: Stored Procedures & MSSQL & CTLIB
  • Date: Wed, 13 Nov 2002 13:56:19 -0500


> From: Darren Smith [mailto:data AT barrysworld.com]
> Sent: November 13, 2002 1:33 PM
>
> Are Stored Procedures working in CTLIB? Or have I got
> completely the wrong
> end of the stick on using ct_param?

Darren,

Stored procedures, yes. Output parameters for stored procedures, no, not in
ct-lib. :(

See src/ctlib/ct.c:

CS_RETCODE ct_param(CS_COMMAND *cmd, CS_DATAFMT *datafmt, CS_VOID *data,
CS_INT
datalen, CS_SMALLINT indicator)
{
TDSSOCKET *tds;
/* TDSDYNAMIC *dyn; */
/* TDSINPUTPARAM *param; */
int elem;

tdsdump_log(TDS_DBG_FUNC, "%L inside ct_param()\n");
tdsdump_log(TDS_DBG_INFO1, "%L ct_param() data addr = %d data length
= %
d\n", data, datalen);

tds = cmd->con->tds_socket;

elem = tds_lookup_dynamic(tds, cmd->dyn_id);

/* TODO */
return CS_FAIL;

Also see doc/api_status.txt.

HTH.

--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