SQL

Monday, 19 January 2015

Search Text in Stored Procedures and Tables

To Search in stored procedures

 Collapse | Copy Code
SELECT Name as [Stored Procedure Name]
FROM sys.procedures
WHERE OBJECT_DEFINITION(OBJECT_ID) LIKE '%Product%'
AND OBJECT_DEFINITION(OBJECT_ID) LIKE '%Code%'


To search in tables

https://gallery.technet.microsoft.com/scriptcenter/c0c57332-8624-48c0-b4c3-5b31fe641c58 
Posted by Anju Renjith at 01:20 No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Newer Posts Older Posts Home
Subscribe to: Posts (Atom)

Blog Archive

  • ▼  2015 (6)
    • ►  September (1)
    • ►  May (1)
    • ►  February (3)
    • ▼  January (1)
      • Search Text in Stored Procedures and Tables
  • ►  2014 (6)
    • ►  December (1)
    • ►  November (3)
    • ►  June (1)
    • ►  February (1)
  • ►  2013 (6)
    • ►  June (1)
    • ►  May (5)
  • ►  2012 (6)
    • ►  August (1)
    • ►  July (5)
Simple theme. Theme images by luoman. Powered by Blogger.