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

后端 未结 14 804
一个人的身影
一个人的身影 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条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-04 05:02

    I've used these in the past:

    • Searching all user stored procedures for a table name
    • Search and replace SQL Server data in all columns of all tables

    In this particular case, where you need to replace a specific string across stored procedures, the first link is probably more relevant.

    A little off-topic, the Quick Find add-in is also useful for searching object names with SQL Server Management Studio. There's a modified version available with some improvements, and another newer version also available on Codeplex with some other useful add-ins as well.

提交回复
热议问题