I am new to SQL Server. I am logged into my database through SQL Server Management Studio.
I have a list of stored procedures. How do I view the stored procedure code?
Use this query:
SELECT object_definition(object_id) AS [Proc Definition] FROM sys.objects WHERE type='P'