Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

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

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

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

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

Everyone has problem when going to load data into Data warehouse (EDW). They all need to confirm that data quality is good but they don't no how to proceed. Microsoft has provided new task within SSIS 2008 called "Data Profiler Task". It solve th…
Slowly Changing Dimension Transformation component in data task flow is very useful for us to manage and control how data changes in SSIS.
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.

809 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