sql script to return full stored procedure definition code example Example: mssql describe stored procedure sqlcmd sp_helptext <name of your sp>