INF: Function dbretname() Returns NULL

Last reviewed: April 29, 1997
Article ID: Q110325

The information in this article applies to:

  - Microsoft SQL Server Programmer's Toolkit, version 4.2

SUMMARY

Function dbretname() will not return NULL for a stored procedure parameter name if the parameter name is not specified in a previous call to dbrpcparam() or in the SQL EXEC statement.

MORE INFORMATION

For example, executing the statement,

   declare @var int
   exec TESTPROC @PARAM1 = @var OUT

will result in dbretname( dbproc, 1 ) returning the value "@PARAM1".

While executing the statement,

   declare @var int
   exec TESTPROC @var OUT

will result in dbretname( dbproc, 1 ) returning NULL.


Additional query words: dblib db_library DB-Library rpc remote
stored procedure return param
Keywords : kbprg SSrvDB_Lib SSrvDoc_Err SSrvProg
Version : 4.2.5 | 4.2.5 | 4.2.5
Platform : MS-DOS OS/2 WINDOWS


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: April 29, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.