ict.ken.be

Delivering solid user friendly software solutions since the dawn of time.

Find stored procedures and views that contain a text

Categories: SQL Server

SELECT o.name, o.xtype
FROM syscomments c (NOLOCK)
INNER JOIN sysobjects o (NOLOCK) ON c.id=o.id
WHERE c.TEXT LIKE '%userpersontype%'