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

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

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

 All Forums
 SQL Server 2008 Forums
 SQL Server Administration (2008)
 Lock Request Timeout - error 1222
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Bill_C
Constraint Violating Yak Guru

United Kingdom
299 Posts

Posted - 10/01/2012 :  01:40:40  Show Profile  Reply with Quote
I'm getting this message on one of my databases whilst trying to refresh the list of stored procedures and need to alter/modify one of my Stored Procedures quickly.

My question is:-
Is there a way of opening a stored procedure programatically to alter it without having to right click on it's name and selecting 'Modify'?

i.e
Is there a back door to fire up the command within SQL Server that lists the SP for modification?

Bill_C
Constraint Violating Yak Guru

United Kingdom
299 Posts

Posted - 10/01/2012 :  01:50:25  Show Profile  Reply with Quote
OK, cancel that, got it:-

sp_helptext 'YourSchemaName.YourProcedureName';

Go to Top of Page
  Previous Topic Topic Next 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.02 seconds. Powered By: Snitz Forums 2000