Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 Stored procedure - Need to put print statement

Author  Topic 

Nandana
Starting Member

4 Posts

Posted - 2008-08-28 : 09:02:32
Hi

I have a stored procedure calling other stored procedures to complete the tasks. I want to add print statement at each stored procedure to check its working right. Please can somebody help me out and also syntax used for the same.

Thanks In Advance

spirit1
Cybernetic Yak Master

11752 Posts

Posted - 2008-08-28 : 09:03:43
print 'text to print goes here'
however this won't be returned to the client if you do SET NOCOUNT ON in your sprocs.

_______________________________________________
Causing trouble since 1980
Blog: http://weblogs.sqlteam.com/mladenp
Speed up SSMS development: www.ssmstoolspack.com <- version 1.0 out!
Go to Top of Page

Nandana
Starting Member

4 Posts

Posted - 2008-08-28 : 09:28:12
Thanks a lot, Spirit1. Can I set it off and put the print statements. And I understand that we can apply breakpoints and debug Sprocs by using Visual Studio Pro Edition. I dont have that edition. Is there any other way to check the Sprocs in Sql Server 05 Thanks
Go to Top of Page
   

- Advertisement -