How to find which views are using a certain table in SQL Server (2008)?

后端 未结 7 872
孤街浪徒
孤街浪徒 2021-01-31 13:30

I have to add a few columns to a table and I also need to add these columns to all the views that use this table.

Is it possible to get a list of all the views in a data

7条回答
  •  粉色の甜心
    2021-01-31 14:21

    If you need to find database objects (e.g. tables, columns, triggers) by name - have a look at the FREE Red-Gate tool called SQL Search which does this - it searches your entire database for any kind of string(s).

    enter image description here

    enter image description here

    It's a great must-have tool for any DBA or database developer - did I already mention it's absolutely FREE to use for any kind of use??

提交回复
热议问题