Search specific string inside Stored Procedure, View, Function, Trigger, Table Name, Table Field in SQL Server
this query can be used to search specific string inside, no need to right click - modify - and search manually from Query designer / SSMS DECLARE @NextString NVARCHAR(40) DECLARE @Pos INT DECLARE @NextPos INT DECLARE @String NVARCHAR(40) DECLARE @Delimiter NVARCHAR(40) DECLARE @Query nvarchar(2000) DECLARE @WHERE nvarchar(1000) DECLARE @Query2 nvarchar(2000) DECLARE @Where2 nvarchar(1000) SET @Query = 'SELECT DISTINCT so.name, ' + 'CASE so.xtype ' + 'WHEN ''P'' THEN ''SPROC'' ' + 'WHEN ''IF'' THEN ''FUNCTION'' ' + 'WHEN ''FN'' THEN ''FUNCTION'' ' + 'WHEN ''V'' THEN ''VIEW'' ' + 'WHEN ''U'' THEN ''TABLE'' ' + 'WHEN ''TR'' THEN ''TRIGGER'' ' + 'END AS [TYPE] ' + 'FROM...