If you don’t want to find it that way, no worries. There is easy way how to find it. Just use simple query and all your triggers associated to which table will be list down.
You will get a result like below.select B.Name as TableName,A.name as TriggerName from sysobjects A,sysobjects B where A.xtype='TR' AND A.parent_obj = B.id
There are a lot of thing that you can play around with sysobjects in MS-SQL.
Here are the list of all possible values for this column (xtype):
C = CHECK constraintTill then….adios.
D = Default or DEFAULT constraint
F = FOREIGN KEY constraint
L = Log
P = Stored procedure
PK = PRIMARY KEY constraint (type is K)
RF = Replication filter stored procedure
S = System table
TR = Trigger
U = User table
UQ = UNIQUE constraint (type is K)
V = View
X = Extended stored procedure
No comments:
Post a Comment