Hello
I was creating a TSQL statement that would tell me every stored procedure that contained a certain table.
Next, I needed a way to select each database on the server.
My question is - Does SQL Server Manager already have a utility to do this?
Thanks
Dave
I was creating a TSQL statement that would tell me every stored procedure that contained a certain table.
Next, I needed a way to select each database on the server.
My question is - Does SQL Server Manager already have a utility to do this?
Code:
declare @SEARCHWORD as varchar(500)
set @SEARCHWORD = 'anytable'
Select specific_name, routine_definition, *
From Information_Schema.Routines
Where Routine_definition Like '%'+@SEARCHWORD+'%'
Thanks
Dave