Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
sqldba20
Posting Yak Master
183 Posts |
Posted - 2007-05-24 : 09:03:47
|
| Folks:Any Idea how to check if there is a trigger on a table? Because one of my stored procedure is doing ONLY INSERT and next day morning I see that the records were inserted and then they were deleted. Not sure whether any other processess is kicking or whether there is a trigger?Thanks ! |
|
|
harsh_athalye
Master Smack Fu Yak Hacker
5581 Posts |
Posted - 2007-05-24 : 09:08:02
|
| [code]-- To check whether table has AFTER triggerSELECT OBJECTPROPERTY('TABLE-NAME','HasAfterTrigger')-- To check whether table has INSTEAD OF triggerSELECT OBJECTPROPERTY('TABLE-NAME','HasInsteadOfTrigger')[/code]Harsh AthalyeIndia."The IMPOSSIBLE is often UNTRIED" |
 |
|
|
cvraghu
Posting Yak Master
187 Posts |
Posted - 2007-05-24 : 13:20:07
|
| You can also use this - sp_helptrigger [ @tabname = ] 'table' [ , [ @triggertype = ] 'type' ] |
 |
|
|
|
|
|