Try it

Paste a T-SQL CREATE PROCEDURE/ALTER PROCEDURE body below. The demo is rate-limited and capped at 20,000 characters / 500 lines — subscribe for unlimited use via the API or your account's playground.