Solved

Trigger vanished from enterprise studio but still running in background

Posted on 2008-06-19
8
250 Views
Last Modified: 2011-09-20
I recently created a trigger to pull some information from one table into another once certain fields were updated.

Once i was happy that it was working fine i left it alone and it has been working since without any problems.

I now need to modify the code slightly but i cannot find it through management studio; i have even tried running the following SQL on the server and it is not being found.

select object_name(id), object_name(deltrig),
object_name(instrig), object_name(updtrig)
from sysobjects
where xtype ='U'
and
(deltrig > 0 or instrig > 0 or updtrig > 0)

The wierd thing is that it is obviously still running because records are benig added to the table when updates take place.

Does anyone have any ideas what may be causing this?
0
Comment
Question by:jodman
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
  • 2
8 Comments
 
LVL 143

Assisted Solution

by:Guy Hengel [angelIII / a3]
Guy Hengel [angelIII / a3] earned 20 total points
ID: 21822671
>where xtype ='U'
only shows tables...
0
 
LVL 143

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 21822675
ooops, sorry :)

you must be looking in the wrong database (with the query you mention) ...
0
 

Author Comment

by:jodman
ID: 21822730
No i am definately looking in the right database and on the right server; at first i simply assumed that the trigger had been deleted and so began re-creating it but it is definately still working in the background.
0
Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

 
LVL 60

Assisted Solution

by:chapmandew
chapmandew earned 40 total points
ID: 21823070
SEe if this returns anything:


select object_name(parent_id), * From sys.triggers
where object_name(parent_id) = 'yourtablename'
0
 

Author Comment

by:jodman
ID: 21823126
Thanks for your suggestion but this still does not return details of the trigger.
0
 
LVL 60

Assisted Solution

by:chapmandew
chapmandew earned 40 total points
ID: 21823172
Then it probably doesn't exist....try one more thing:

use yourdatabasename
go

select object_id('triggername','tr')

does this return a numeric value?
0
 

Accepted Solution

by:
jodman earned 0 total points
ID: 22168283
I never managed to work out what happened here guys; thanks for your help anyway.
0
 

Author Comment

by:jodman
ID: 22168296
thanks
0

Featured Post

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Two tables - Sum of values - What is the difference 31 56
SQL Agent Timeout 5 70
TSQL mapping detailed records to group records 9 67
Find unused columns in a table 12 75
In SQL Server, when rows are selected from a table, does it retrieve data in the order in which it is inserted?  Many believe this is the case. Let us try to examine for ourselves with an example. To get started, use the following script, wh…
Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

726 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