Solved

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

Posted on 2013-01-31
2
241 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 40

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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

Suggested Solutions

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.
Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
Via a live example, show how to set up a backup for SQL Server using a Maintenance Plan and how to schedule the job into SQL Server Agent.
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

680 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