--
---
You received this message because you are subscribed to the Google Groups "SQLServerDF" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sqlserverdf...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
-- SQL 2000 e posteriores SELECT B.name , case type when ‘P’ then ‘Stored procedure’ when FN’ then ‘Function’ when ‘TF’ then ‘Function’ when ‘TR’ then ‘Trigger’ when ‘V’ then ‘View’ else ‘Outros Objetos’ end FROM syscomments A (nolock) JOIN sysobjects B (nolock) on A.Id = B.Id WHERE A.Text like ‘%Nome_Objeto%’ –Objto a ser procurado ORDER BY 2 DESC -- 2005/2008 SELECT type_desc, obj.name AS SP_NAME, sqlmod.definition AS SP_DEFINITION FROM sys.sql_modules AS sqlmod INNER JOIN sys.objects AS obj ON sqlmod.object_id = obj.object_id WHERE sqlmod.definition LIKE ‘%Nome_Objeto%’ –Objto a ser procurado ORDER BY type_desc

sys.sql_modules
--
Aproveitando o email do nosso amigo Jeronymo, anexo o e-book em ingles desse livro.
![]() QR Code | Book DescriptionSQL Server DMVs in Action shows you how to obtain, interpret, and act on the information captured by DMVs to keep your system in top shape. The over 100 code examples help you master DMVs and give you an instantly reusable SQL library. You'll also learn to use Dynamic Management Functions (DMFs), which provide further details that enable you to improve your system's performance and health.
| ||||||||||||||||||||||||||||||