Last active
November 7, 2019 20:29
-
-
Save hancheester/ed652414f13075aa16b1c713a0526deb to your computer and use it in GitHub Desktop.
To view content of a stored proc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- To view content of a stored proc | |
-- Option 1 | |
exec sp_helptext 'dbo.NameOfTheSp' | |
-- Option 2 | |
select OBJECT_DEFINITION(OBJECT_ID('NameOfTheSp')) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment