all groups > sql server programming > october 2007 >
You're in the

sql server programming

group:

DML Trigger not found in INFORMATION_SCHEMA.ROUTINES


Re: DML Trigger not found in INFORMATION_SCHEMA.ROUTINES Russell Fields
10/22/2007 4:04:23 PM
sql server programming:
Yan,

Triggers are not in .ROUTINES, which only reports on stored procedures and
functions. So, sysobjects is still the place to go in SQL Server 2000.
However, sysobjects only has a crdate which tracks creation, but does not
track modifications from ALTER statements. (SQL Server 2005 has the extra
information about modification in one of the new views.)

RLF

[quoted text, click to view]

DML Trigger not found in INFORMATION_SCHEMA.ROUTINES Yan
10/22/2007 9:44:26 PM
Hi,

SQL Server 2000 sp4


I have a DML trigger on a user table which can be found in systemobjects but
when quering INFORMATION_SCHEMA.ROUTINES for ROUTINE_NAME LIKE '%myTrigger%'
the trigget is not found.

What I actually would like to know is the date when the trigger was created
or last altered.

I appreciate any help,
-Yaniv

Re: DML Trigger not found in INFORMATION_SCHEMA.ROUTINES Tibor Karaszi
10/22/2007 10:35:25 PM
Also, the information_Schema views that do present an altered date do in that column give creation
date (since SQL Server in earlier version didn't keep track of alter date anywhere).

--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://sqlblog.com/blogs/tibor_karaszi


[quoted text, click to view]
Re: DML Trigger not found in INFORMATION_SCHEMA.ROUTINES Yan
10/22/2007 11:14:23 PM
Thank you.



[quoted text, click to view]

AddThis Social Bookmark Button