Where does SQL Server store the stored procedure code?

前端 未结 7 1251
情书的邮戳
情书的邮戳 2020-12-25 13:11

I once needed the lines of the stored procedures to be able to trace whether I have a reference to some function, procedure or table, or sometimes to try to find something i

7条回答
  •  旧时难觅i
    2020-12-25 13:22

    View Dependencies

    In SQL Server Management Studio, right-click on a table, and choose "View Dependencies". You will see every object that references the table

    INFORMATION_SCHEMA

    The actual code for a stored proc, view, constraint, etc is stored in SysComments. You should query this using the views provided in the schema Information_Schema. Here are all the components of the Information_Schema.

提交回复
热议问题