SQLServer queries the SQL of all stored procedures, views and functions containing a certain text

        Sometimes we change a certain field, but we don't know which stored procedure or view the field is used in. We can use this statement to query where the field has been applied.

        The statement is as follows:

select *   
from sysobjects o, syscomments s   
where o.id = s.id   
and text like '%t_user_goods%'    --字段名称

        result:

Guess you like

Origin blog.csdn.net/sinat_28984567/article/details/129629067