How to find a text inside SQL Server procedures / triggers?

后端 未结 14 803
一个人的身影
一个人的身影 2020-12-04 04:48

I have a linkedserver that will change. Some procedures call the linked server like this: [10.10.100.50].dbo.SPROCEDURE_EXAMPLE. We have triggers also doing thi

14条回答
  •  孤城傲影
    2020-12-04 05:28

    [Late answer but hopefully usefull]

    Using system tables doesn't always give 100% correct results because there might be a possibility that some stored procedures and/or views are encrypted in which case you'll need to use DAC connection to get the data you need.

    I'd recommend using a third party tool such as ApexSQL Search that can deal with encrypted objects easily.

    Syscomments system table will give null value for text column in case object is encrypted.

提交回复
热议问题