Drop Table

Support Forum for database administrators and web based access to important newsgroups related to databases
Register on Database Support Forum Edit your profileCalendarFind other Database Support forum membersFrequently Asked QuestionsSearch this forum -> 
For Database admins: Free Database-related Magazines Now Free shipping to Texas


Post New Thread










Thread
Author

Searching Stored Procedures
Hi,

We are using SQL Server 2005 and SS Management Studio.    We
have a database that contains about 500 stored procedures.   I want to
quickley search through those stored procedures looking for a string of
text.

How can I do this?   QuickFind requires me to have the
procedure open in an editing window before it will search.  I want to
do it without opening 500 stored procedures.


Thanks,
Jim


Report this thread to moderator Post Follow-up to this message
Old Post
Jim.Mueksch@wellsfargo.com
10-31-06 05:15 AM


Re: Searching Stored Procedures
This might work for you.

SELECT ROUTINE_NAME
FROM   INFORMATION_SCHEMA.ROUTINES
WHERE  ROUTINE_DEFINITION LIKE '%Search Criteria Here%'

-- 
Arnie Rowland, Ph.D.
Westwood Consulting, Inc

Most good judgment comes from experience. 
Most experience comes from bad judgment. 
- Anonymous

You can't help someone get up a hill without getting a little closer to the 
top yourself.
- H. Norman Schwarzkopf


<Jim.Mueksch@wellsfargo.com> wrote in message news:1162247107.522841.188880@b28g2000cwb.goo
glegroups.com...
> Hi,
> 
>       We are using SQL Server 2005 and SS Management Studio.    We
> have a database that contains about 500 stored procedures.   I want to
> quickley search through those stored procedures looking for a string of
> text.
> 
>        How can I do this?   QuickFind requires me to have the
> procedure open in an editing window before it will search.  I want to
> do it without opening 500 stored procedures.
> 
> 
> Thanks,
> Jim
>

Report this thread to moderator Post Follow-up to this message
Old Post
Arnie Rowland
10-31-06 05:15 AM


Re: Searching Stored Procedures
SELECT [name]
FROM sys.procedures
WHERE OBJECT_DEFINITION([object_id]) LIKE '%a string of text%'



<Jim.Mueksch@wellsfargo.com> wrote in message
news:1162247107.522841.188880@b28g2000cwb.googlegroups.com...
> Hi,
>
>       We are using SQL Server 2005 and SS Management Studio.    We
> have a database that contains about 500 stored procedures.   I want to
> quickley search through those stored procedures looking for a string of
> text.
>
>        How can I do this?   QuickFind requires me to have the
> procedure open in an editing window before it will search.  I want to
> do it without opening 500 stored procedures.
>
>
> Thanks,
> Jim
>



Report this thread to moderator Post Follow-up to this message
Old Post
Aaron Bertrand [SQL Server MVP]
11-01-06 12:12 AM


Sponsored Links





Last Thread Next Thread
Post New Thread

MS SQL Server archive

Show a Printable Version Email This Page to Someone! Receive updates to this thread
Microsoft SQL Server
Access database support
PostgreSQL Replication
SQL Server ODBC
FoxPro Support
PostgreSQL pgAdmin
SQL Server Clustering
MySQL ODBC
Web Applications with dBASE
SQL Server CE
MySQL++
Sybase Database Support
MS SQL Full Text Search
PostgreSQL Administration
SQL Anywhere support
DB2 UDB Database
Paradox Database Support
Filemaker Database
Berkley DB
SQL 2000/2000i database
ASE Database
Forum Jump:
All times are GMT. The time now is 09:07 PM.

 
Mobile devices forum | Database support forum archive




Copyrights DropTable.com Database Support Forum 2004 - 2006