BUG: EXAMPLE8.C in Prog. Ref. Does Not Match Sample Program

ID: Q113136


The information in this article applies to:

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 SSrvDoc_Err kbbug4.20 SSrvWinNT 
Version           : 4.2
Platform          : WINDOWS 
Issue type        : 

Last Reviewed: March 19, 1999