a guest Sep 20th, 2019 99 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. DECLARE @SearchText     Varchar(100)
  2. SET @SearchText = 'something'
  3. SELECT DISTINCT o.xtype,
  4. FROM syscomments c
  5.       INNER JOIN sysobjects o On =
  6. WHERE c.text like '%' + @SearchText + '%'
  7. ORDER BY o.xtype,
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand