Twitter

Follow SQLQuill on Twitter

Subscribe

MN Pass

TSQL Tip O’ the Week – 6/28/11 – SP_HELPTEXT

This weeks tip:

What’s the fastest animal on earth?  The Cheetah.

What’s the fastest way to get a definition of a unencrypted stored procedure?  Use SP_HELPTEXT

If you don’t know, SP_HELPTEXT returns, in the results pane (use ALT+T to put the results to text), the TSQL of the following:

  • unencrypted stored procedure
  • view
  • trigger
  • user-defined function
  • user-defined rule
  • default
  • computed column
  • CHECK constraint
  • system object

Here’s an example from the AdventureWorks database…..

SP_HELPTEXT uspGetBillOfMaterials

Here are some related posts from the intraweb:

Previous Tips O’ the Week

Leave a Reply

  

  

  

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>