Solved

SQL Server 2000 - How to find an object , query or job

Posted on 2013-01-31
2
237 Views
Last Modified: 2013-01-31
Hi..
I have a DB with hundreds of SPs, Jobs, DTS packages etc.
How can I find the SP or Jobs or DTS that contain a 'keyword'?

I'm trying to find a '25K'  in the text of SP, Job, DTS package .

How can I search a database and locate an object , job etc that contains the words?
0
Comment
Question by:JElster
2 Comments
 

Assisted Solution

by:ndr-itsolutions
ndr-itsolutions earned 100 total points
ID: 38840045
0
 
LVL 39

Accepted Solution

by:
lcohan earned 400 total points
ID: 38840654
--Run a statement like in the DB you know the object is:


select * from syscomments where text like '%TextToSearchHere%'


if you need to run at server level you can use a undocumented MSFOREACHDB stored proc and run the same code as above.

For DTS - if you have them saved as files, you can search within the file.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Let's review the features of new SQL Server 2012 (Denali CTP3). It listed as below: PERCENT_RANK(): PERCENT_RANK() function will returns the percentage value of rank of the values among its group. PERCENT_RANK() function value always in be…
Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
Via a live example, show how to shrink a transaction log file down to a reasonable size.
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now