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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SS2K, view trigger code from inside QA

Status
Not open for further replies.

SteveDingle

Programmer
Jul 26, 2004
254
GB
Heya All,

I use ApexSQL EDIT as my interface in SQL Server so always forget how to do things in QA or EM (and I'm now spending more time on client pc)

Is there a command I can use in QA which allow me to view the code for a trigger and/or SP's

Thanks


Toodles,
Steve Dingle
D&S Business Solutions Ltd
 
try sp_helptext <sprocname|triggername>

Or use Script Object to New Window As... Alter option in QA.

------
chemistry - the only natural science that can be broken down into the categories a) making drugs and b) blowing stuff up
[banghead]
 
And when you use sp_helptext turn on the results-in-text option (ctrl-t). You'll find line breaks and tabs and things are more accurate to the original. Press ctrl-d to get back to results-in-grid.

[COLOR=black #e0e0e0]For SQL and technical ideas, visit my blog, Squared Thoughts.

The best part about anything that has cheese is the cheese.[/color]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top