Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Stored Procedure Question.... 3

Status
Not open for further replies.

pzmgmb

Programmer
Apr 2, 2003
115
US
Does a stored procedure exist that i can type in the name of a stored procedure or a view and it will print out the text of the object. Now when i want the text to a stored procedure i have to open Enterprise Manager and drill down and then copy and paste the text from the object in Query Analyzer.

Isnt there an easier way?
 
I rarely use Enterprise Manager. Try this. Hit F8 from within Query Analyzer. This will open up the Object Browser. From there, you can right-click on a procedure and choose "edit". This will, I think, accomplish what you are looking for at least to some extent.
 
sp_helptext 'ObjectName'

--John [rainbow]
-----------------------------------
Behold! As a wild ass in the desert
go forth I to do my work.
--Gurnie Hallock (Dune)
 
sp_helpText (procedureName)



Catadmin - MCDBA, MCSA
"If a person is Microsoft Certified, does that mean that Microsoft pays the bills for the funny white jackets that tie in the back???
 
Hmm, John and I seem to have replied at the same time. @=)

Gotta love it.



Catadmin - MCDBA, MCSA
"If a person is Microsoft Certified, does that mean that Microsoft pays the bills for the funny white jackets that tie in the back???
 
Thanks jaustin4,
I think your tip was for 2000 and i'm in lowly 7.0

JohnDTampaBay and Catadmin thanks for the tip! Starred you both.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top