Click here to monitor SSC
SQLServerCentral is supported by Redgate
Log in  ::  Register  ::  Not logged in

Get your favorite SSC scripts directly in SSMS with the free SQL Scripts addin. Search for scripts directly from SSMS, and instantly access any saved scripts in your SSC briefcase from the favorites tab.
Download now (direct download link)

Procedure to Search any sql Object

By Saket Mittal,

So many times I do not remember the name of table or stored procedure I have created, and it becomes time consuming to search object by firing query on sysobjects or search using Enterprise Manager.
It is a simple Stored Prodeure where the Parameter is the Hint of the Object name and Object Type.
It will fetch all the Objects and its description from sysobjects.
Both parameters are optional, so search can be made on the required criteria.

Total article views: 126 | Views in the last 30 days: 2
Related Articles

Object Search

Procedure to search any database (or a combination of databases, including all) for a specific strin...


Simple Object and String Search within Objects

This Simple script will help to do a Server wide search for an object name or usage of a String in O...


Search objects in Database

Use this script to search objects in a Database. Also used to check a tables column types and detail...


Search All SQL Script Objects in All Databases for Text

Edit the @SearchText and you can enter any text you would like to search for in SQL Objects.


Search for an object across multiple databases on a server.

There are other options available like Sql search from Red Gate. Here's a simple script to search fo...