Last active
August 29, 2015 14:08
-
-
Save benzap/f65f7dc43c9f612d1cb2 to your computer and use it in GitHub Desktop.
Grab all objects
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
SELECT obj.*, modules.definition | |
FROM sys.objects AS obj | |
LEFT JOIN sys.sql_modules AS modules | |
ON obj.object_id = modules.object_id | |
ORDER BY type_desc, name |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment