BUG: EXAMPLE8.C in Prog. Ref. Does Not Match Sample Program
Article ID: 113136
Article Last Modified on 11/30/2007
APPLIES TO
- Microsoft SQL Server 7.0 Standard Edition
This article was previously published under Q113136
BUG# 9921 (4.2)
SYMPTOMS
On page 294 of the SQL Server for Windows NT "Programmer's Reference
for C," there is a typographical error in the dbrpcparam call for @param4.
The source for EXAMPLE8.C provided with the SQL Server Programmer's Toolkit
has the third parameter (status) set to NULL, whereas in the "Programmer's
Reference" it is set to DBRPCRETURN.
WORKAROUND
In order for the version in the documentation to run correctly, it is
necessary to either modify the CREATE PROCEDURE statement so that @param4
is declared as an output parameter or modify the call to dbrpcparam for
@param4 to use NULL as the value for the status parameter.
STATUS
Microsoft has confirmed this to be a problem in the documentation for
Microsoft SQL Server version 4.2. We are researching this problem and will
post new information here in the Microsoft Knowledge Base as it becomes
available.
Additional query words: Windows NT
Keywords: kbother KB113136