Solved

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

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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
SQL Update trigger 5 18
sql query to calculate avaerage 21 40
Return 0 on SQL count 24 30
Sql Query 6 67
Introduction SQL Server Integration Services can read XML files, that’s known by every BI developer.  (If you didn’t, don’t worry, I’m aiming this article at newcomers as well.) But how far can you go?  When does the XML Source component become …
JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.

810 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