• OK, this will get the entire length:

    select o.name, m.definition

    from master.sys.system_sql_modules m

    join master.sys.system_objects o

    ON o.object_id = m.object_id

    Of course, getting the entire definition out of there and into a script is a whole other trick (text output window will cut it off at 8000 characters).

    [font="Times New Roman"]-- RBarryYoung[/font], [font="Times New Roman"] (302)375-0451[/font] blog: MovingSQL.com, Twitter: @RBarryYoung[font="Arial Black"]
    Proactive Performance Solutions, Inc.
    [/font]
    [font="Verdana"] "Performance is our middle name."[/font]