Quickest/Easiest way to use Search/Replace through all stored procedures

前端 未结 13 1205
萌比男神i
萌比男神i 2020-12-30 03:05

Actually, this is a 2 part question.

  1. Is it possible to use some sort of functionality to search through every stored procedure for a string and possibly rep

13条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-30 03:21

    From the Object Explorer Details window in SSMS, open the stored procedures folder. Select all the objects (you can multi-select from this window, which is pretty much the only purpose of the Object Explorer Details window) and right click, choosing to script as DROP and CREATE. You can now do a search/replace on this, replacing all you need in one go before executing it.

    Edit: I've blogged about this solution.

提交回复
热议问题