Display the text of the stored procedure in SQL Query Analyzer

Posted on March 21, 2007. Filed under: Uncategorized |

Ever wanted to just quickly check the stored procedure logic from the SQL Query Analyzer. Here is how you do it,

  • Open your SQL Query Analyzer
  • Get to “Tools >> Customize”
  • Navigate to the “Custom” tab
  • Pick a shortcut key that’s available (for example, Ctrl + 3)
  • Type this on the Stored Procedure field “sp_helptext” (without the quotes, of course)
  • Hit Ok

Then, open up a new query window and hit Ctrl + T keys to display the output in text format. Type the name of the stored procedure. Block to select the stored procedure name and hit the shortcut key that you’ve configured above. You should be able to see the stored procedure text on your output window. This would be handy if you really, quickly wanna’ peak at the logic of a stored procedure and don’t want to open up an Alter window for that.

tags: , , , , ,

~

Make a Comment

Make a Comment: ( None so far )

blockquote and a tags work here.

  •  

    March 2007
    M T W T F S S
    « Feb   May »
     1234
    567891011
    12131415161718
    19202122232425
    262728293031  
  • Del.icio.us

  • Subscribe

    Subscribe in NewsGator Online

    Subscribe in Rojo

    Add WinDev to Newsburst from CNET News.com

    Add to My AOL

    Add to netvibes

    Subscribe in Bloglines

    Subscribe in NewsAlloy

    Add WinDev to ODEO

    Subscribe in podnova

    Add to Pageflakes

  • Spams Blocked

Liked it here?
Why not try sites on the blogroll...