• 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

    An Offline Code Editor

    April 5, 2025

    Hey everyone,

    Hash Generator: A Simple Browser Tool That Actually Respects Your Privacy

    April 4, 2025

    Hey folks! I just wrapped up another little weekend project - a browser-based Hash Generator. It’s super lightweight and lets you generate all sorts of crypt...

    Browser-Based Bitcoin Test Wallet

    April 1, 2025

    Hey everyone! I wanted to share a fun little project I’ve been tinkering with lately – a completely browser-based Bitcoin wallet that doesn’t need any server...

    Simple QR Code Generator: A Lightweight, Browser-Based Tool

    March 7, 2025

    Today, I’m sharing a simple yet effective tool I’ve developed: a browser-based QR Code Generator. In an era where QR codes have become ubiquitous, having a q...

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