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
 displaying variable values
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

bill_
Starting Member

37 Posts

Posted - 05/17/2010 :  18:07:15  Show Profile  Reply with Quote
How do you display variable values ?

Trying to learn how to loop through a cursor and take totals and counts.

Tried the PRINT @totalfee but when I did exec mystoredproc I saw query results but no total.

Edited by - bill_ on 05/17/2010 19:05:42

visakh16
Very Important crosS Applying yaK Herder

India
52325 Posts

Posted - 05/18/2010 :  01:01:39  Show Profile  Reply with Quote
print willl display results in messages tab

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

dattatreysindol
Starting Member

India
20 Posts

Posted - 05/18/2010 :  05:16:25  Show Profile  Reply with Quote
Hi There -

You can even use SELECT @totalfee to display the results in the results tab.


Dattatrey Sindol
http://mytechnobook.blogspot.com/

This information is provided "AS IS" with no warranties, and confers no rights.
Go to Top of Page

bill_
Starting Member

37 Posts

Posted - 05/18/2010 :  08:14:06  Show Profile  Reply with Quote
Thank you very much visakh16 and dattareysindol !
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

India
52325 Posts

Posted - 05/18/2010 :  13:54:36  Show Profile  Reply with Quote
welcome

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

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.06 seconds. Powered By: Snitz Forums 2000