Article ID: 223060 - Last Review: October 15, 2002 - Revision: 1.1

FIX: T-SQL Shows Incorrect Parameters in Local Variables Window

This article was previously published under Q223060

On This Page

Expand all | Collapse all

SYMPTOMS

When using the Visual Basic T-SQL Debugger to debug SQL Server 7.0 stored procedures, you might see incorrect values for input parameters in the Local Variables window.

RESOLUTION

To resolve this problem, install Visual Studio 6.0 Service Pack 3 on the client (Visual Basic) computer. You do not need to install the updated T-SQL Debugger components on the server (SQL Server) computer.

STATUS

Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.

This bug was corrected in Visual Studio 6.0 Service Pack 3. For more information about Visual Studio service packs, please see the following articles in the Microsoft Knowledge Base:

194022 INFO: Visual Studio 6.0 Service Packs, What, Where, Why  (http://support.microsoft.com/kb/194022/EN-US/ )

194295 HOWTO: Tell That Visual Studio 6.0 Service Packs Are Installed  (http://support.microsoft.com/kb/194295/EN-US/ )

MORE INFORMATION

Steps to Reproduce Behavior

  1. Open a new Visual Basic Standard Exe project. Form1 is created by default.
  2. Open the Data View window.
  3. Create a Data Link to a SQL Server 7.0 Pubs database.
  4. Open the Stored Procedures folder.
  5. Right-click the reptq3 stored procedure and select Debug.
  6. Populate the three parameters.
  7. Step into the stored procedure.

    You'll see that all three parameters in the Local Variables window have the same value.

    This problem only occurs with SQL Server 7.0.

APPLIES TO
  • Microsoft Visual Basic 6.0 Professional Edition
  • Microsoft Visual Basic Enterprise Edition for Windows 6.0
Keywords: 
kbbug kbfix kbtsql kbvs600sp3fix KB223060
 

Article Translations