Feature Only in Enterprise Edition SQL source code debugging is supported only in Visual C++ Enterprise Edition. For more information, see Visual C++ Editions.
You can use QuickWatch to quickly examine the value of SQL variables and parameters. You can also use QuickWatch to modify the value of a local variable or to add a variable to the Watch window. You cannot modify the value of a global.
The QuickWatch dialog box contains a text box, where you can type a variable name, and a spreadsheet field that displays the current value of the variable that you specified.
The Current Value spreadsheet field displays only one variable at a time. Typing a new variable in the text box and pressing ENTER replaces the previous variable. QuickWatch displays SQL code variable values in their native format.
To view the value of a variable using QuickWatch
– or –
From the Debug menu click Break to halt the debugger.
The QuickWatch dialog box appears.
Tip The Expression drop-down list box contains the most recently used QuickWatch variables.
To quickly view the value of a variable using QuickWatch
When the program is paused at a breakpoint or between steps, you can change the value of any variable in your program. This gives you the flexibility to try out changes and see their results in real time or to recover from certain logic errors.
To modify the value of a variable using QuickWatch
Note Modified cached values may not take effect while you’re stepping through the SQL statement. Although you may have modified the value, it may never be checked again. There is no way to force a refresh.
To add a QuickWatch variable to the Watch window