Solved

Trigger Search By Keyword SQL Server 2000

Posted on 2007-03-21
3
181 Views
Last Modified: 2010-03-19
In SQL Server 2000, I want to do a search for a trigger based on keywords inside the trigger.  What is the command to do this?
0
Comment
Question by:Kaporch
  • 3
3 Comments
 
LVL 16

Expert Comment

by:rboyd56
ID: 18766417
How did you do this in SQL Server 2000?

0
 
LVL 16

Expert Comment

by:rboyd56
ID: 18766424
Sorry I thought you said you did it in SQL Server 2000 and needed to do it in SQL Server 2005. Disregard my response.
0
 
LVL 16

Accepted Solution

by:
rboyd56 earned 250 total points
ID: 18766467
See if this works for you:

select distinct sysobjects.name from sysobjects,syscomments where sysobjects.type = 'tr' and syscomments.text like '%keyword you want to search for%'

My syntax is not totally correct but the query should run.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

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…
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.
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.

707 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

15 Experts available now in Live!

Get 1:1 Help Now