• Skip to primary navigation
  • Skip to content
  • Skip to footer
Sanjay Singh's Blog An another perspective
  • Home
  • Archives
    1. Home
    2. /
    3. 2010
    4. /
    5. 10
    6. /
    7. 28
    8. /
    9. Get all the stored procedures and their definitions in SQL Server

    Get all the stored procedures and their definitions in SQL Server

    October 28, 2010

    Following SQL query will list all the stored procedures and their definition in the active database:

    SELECT SysObject.Name, SysModule.Definition
    FROM Sys.Objects SysObject INNER JOIN Sys.Sql_Modules SysModule
    ON SysObject.Object_ID = SysModule.Object_ID
    WHERE SysObject.Type = 'p'
    ORDER BY SysObject.Name;
    

    Tags: SQL Server

    Updated: October 28, 2010

    Share on

    Twitter Facebook LinkedIn
    Previous Next

    You May Also Enjoy

    Imprint: Styled Text on Images, Exported in the Browser

    April 15, 2026

    I built Imprint for a simple workflow: put styled text on top of a photo or graphic and download the result as PNG or JPG—without sending the image to a serv...

    Cursor-ControlPlane: Run Cursor CLI From Your Phone

    March 25, 2026

    I built Cursor-ControlPlane to control Cursor CLI sessions on my own machine from a web UI or a Telegram chat.

    Domain Finder: A Tool to Discover Available Domain Names

    March 20, 2026

    I’ve built Domain Finder—a tool to check domain availability and discover available domains. It uses RDAP to verify registration status.

    In-Browser GraphQL Playground

    September 17, 2025

    Hey folks!

    • GitHub
    • Feed
    © 2026 Sanjay Singh's Blog. Powered by Jekyll & Minimal Mistakes.