Created
July 18, 2017 18:03
-
-
Save leonardocintra/02c71869c984a3b94a285743b70b00e0 to your computer and use it in GitHub Desktop.
Pesquisa object, tabela, procedure facilmente no Microsfot SQL Server
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use seubanco | |
--use seuOutroBanco | |
--use seuBancoOutro | |
go | |
DECLARE @Search varchar(255) | |
SET @Search='trecho que deseja procurar' | |
SELECT DISTINCT | |
o.name AS Object_Name,o.type_desc | |
FROM sys.sql_modules m | |
INNER JOIN sys.objects o ON m.object_id=o.object_id | |
WHERE m.definition Like '%'+@Search+'%' | |
ORDER BY 2,1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment