Comparing Stored Procedures, Views, and Functions between Databases

  • Hi,

    Hopefully this is a simple question, but can someone tell me which system table SQL stores the text behind Views, Procedures, and Functions in SQL 2008? I'd like to write a small app to compare these both against historical versions of themselves and against other databases as the database evolves, but I can't find where they're stored.

    I hoped they would be in sys.Objects or sys.Procedures, but they're not.

    Thanks in advance for any suggestions. Take care,

    Sam

  • sys.all_sql_modules

    Converting oxygen into carbon dioxide, since 1955.
  • That's it 🙂 I checked Google and even Microsoft's site, but never could find it.

    Thanks --

    Sam

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply