Самый быстрый / простой способ использования поиска / замены через все хранимые процедуры

На самом деле, это вопрос из двух частей.

Is it possible to use some sort of functionality to search through every stored procedure for a string and possibly replace it, like a standard Find/Replace function?

If you have all your stored procedure code include the full database path like this [db1].[dbo].[table1] and you change the database name to [db2] is there a way for SQL Server to automatically update all the code from [db1] tables to [db2]? Or does it have to be done manually?

Ответы на вопрос(12)

Ваш ответ на вопрос