[freetds] Stored Procedure Output Parameters Not Being Return ed

Lowden, James K LowdenJK at bernstein.com
Fri May 9 11:44:23 EDT 2003


> From: Court, Tim [mailto:tim.court at ccur.com]
> Sent: May 9, 2003 11:09 AM
> 
> I have read the various threads on this topic but am left with some
> questions.
> 
> I am using SQL Server 7.0 SP3.  I have tried freeTDS 0.60, 
> 0.61 and last
> nights snapshot on a RedHat9 i686 system and unixODBC.  The 
> threads suggest
> that Microsoft made a change in 7.0 SP3 that broke stored 
> proceedure output
> params in freeTDS, but what is not clear is what needs to be 
> done to fix it
> and if anything is being done about it.
> 
> We absolutely need this to work.  If it should work with the 
> code I have,
> what am I likely to be doing wrong?  If it is broken, is 
> anyone looking to
> fix it in the near term?  If not I will attempt to fix it.  I 
> have looked at
> the TDS packets on the network and can only see the Return 
> Status (0x79)
> coming back, no sign of the output parameters.

Tim,

You may be familar with the New Hampshire Yankee who, when asked for
directions, replied, "You can't get there from here."  

You're suffering from Microsoft's change in behavior.  As of SP3, "exec @p
@a out" will not return any value for @a over the wire.  Period.  You can't
there from here.  What you must do instead is use the rpc functions.  They
work in the current snapshot.  See src/dblib/unittests/rpc.c for an example.


Regards, 

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





More information about the FreeTDS mailing list