Skip to content

Instantly share code, notes, and snippets.

@benzap
Last active August 29, 2015 14:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save benzap/f65f7dc43c9f612d1cb2 to your computer and use it in GitHub Desktop.
Save benzap/f65f7dc43c9f612d1cb2 to your computer and use it in GitHub Desktop.
Grab all objects
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