FIX: Cannot Open Stored Procedure from Call Stack Context

Last reviewed: September 19, 1997
Article ID: Q159576
The information in this article applies to:
  • Microsoft Visual C++, Enterprise Edition, version 4.2

SYMPTOMS

When you debug a stored procedure and you close the associated source code window, you cannot reopen it from the call stack context.

MORE INFORMATION

Steps to Reproduce the Problem

  1. Open a SQL Server stored procedure and start debugging it.

  2. When the debugger stops at the first executable statement, close the Source Code window for the procedure.

  3. Go to the call stack and double-click the procedure name to bring up the source code window.

A 'Find Source' dialog box might appear and request the stored procedure's path. When you cancel this dialog box, the debugger opens a disassembly window at an arbitrary address.

RESOLUTION

Select the View/Project Workspace menu to open the Project Workspace window. Open the stored procedure from the data pane in the Project Workspace window. If you double-click the procedure name in the call stack, the debugger points (with a green arrow) to the correct statement in the procedure where the debugger is stopped. Now you can continue debugging.

STATUS

Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. This bug has been fixed in Visual C++ version 5.0.

Keywords          : vcbuglist420 VCEntIss VCEntSQLDebug vcfixlist500 kbprg kbbuglist kbfixlist
Technology        : kbMfc
Version           : 4.2
Platform          : NT WINDOWS
Issue type        : kbbug
Solution Type     : kbfix


================================================================================


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: September 19, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.