Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 

Get your favourite SSC scripts directly in SSMS with the free SQL Scripts addin. Search for scripts directly from SSMS, and instantly access any saved 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: 122 | Views in the last 30 days: 2
 
Related Articles
SCRIPT

Object Search

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

SCRIPT

Search objects in Database

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

SCRIPT

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.

SCRIPT

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...

SCRIPT

The Ultimate Object Searcher

Searches for objects (including CLR) who's names contain the search string. outputs IDs, names, and ...

 
Contribute

Join the most active online SQL Server Community

SQL knowledge, delivered daily, free:

Email address:  

You make SSC a better place

As a member of SQLServerCentral, you get free access to loads of fresh content: thousands of articles and SQL scripts, a library of free eBooks, a weekly database news roundup, a great Q & A platform… And it’s our huge, buzzing community of SQL Server Professionals that makes it such a success.

Join us!

Steve Jones
Editor, SQLServerCentral.com

Already a member? Jump in:

Email address:   Password:   Remember me: Forgotten your password?
Steve Jones