而不是像
这样的东西SELECT * FROM sys.triggers WHERE CONTAINS(Name, 'Update');
我想做点什么
SELECT * FROM sys.triggers WHERE ("TRIGGER IS FOR UPDATE")
有办法吗?
答案 0 :(得分:2)
使用
SELECT * FROM sys.triggers WHERE OBJECTPROPERTY(object_id, 'ExecIsUpdateTrigger') = 1
答案 1 :(得分:0)
你需要查看SysObjects和SysComments,下面的查询应该可以工作:
Sub CommentPictures()
'Updateby Extendoffcie 20161207
Dim cmt As Comment
Dim xRg As Range
Dim visBool As Boolean
Dim cmtTxt As String
Dim jpgPath As String
Dim shpHeight As Integer, shpWidth As Integer
Application.ScreenUpdating = False
For Each cmt In ActiveSheet.Comments
With cmt
cmtTxt = .Text
shpHeight = .Shape.Height
shpWidth = .Shape.Width
.Text Text:="" & Chr(10) & ""
visBool = .Visible
.Visible = True
On Error Resume Next
Set xRg = .Parent.Offset(0, 1)
.Shape.CopyPicture _
Appearance:=xlScreen, Format:=xlPicture
xRg.PasteSpecial
Selection.ShapeRange.LockAspectRatio = msoFalse
Selection.Width = xRg.Width
Selection.Height = xRg.Height
.Visible = visBool
.Text Text:=cmtTxt
End With
Next cmt
Application.ScreenUpdating = True
End Sub