SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Using Debugger for system variables
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Rock_query
Yak Posting Veteran

52 Posts

Posted - 05/14/2013 :  19:56:48  Show Profile  Reply with Quote
If I press F11 to enter "Step Into" in the debugger, I can press F11 to execute one row at a time and see the values of variables change. I can do this for local variables.

But how can I do this for system variables? I want to check the value of @@FETCH_STATUS

waterduck
Aged Yak Warrior

Malaysia
965 Posts

Posted - 05/14/2013 :  22:13:04  Show Profile  Reply with Quote
SELECT @@FETCH_STATUS
Go to Top of Page

Rock_query
Yak Posting Veteran

52 Posts

Posted - 05/15/2013 :  15:04:24  Show Profile  Reply with Quote
quote:
Originally posted by waterduck

SELECT @@FETCH_STATUS



Thank you. It worked. But how would I do this if I wanted to execute one line of code at a time (pressing F11) so I can see when the values of @@FETCH_STATUS changes?
Go to Top of Page

waterduck
Aged Yak Warrior

Malaysia
965 Posts

Posted - 05/15/2013 :  23:01:36  Show Profile  Reply with Quote
click the debug button?
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.05 seconds. Powered By: Snitz Forums 2000