[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Trigger vanished from enterprise studio but still running in background

Posted on 2008-06-19
8
Medium Priority
?
256 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 80 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
NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

 
LVL 60

Assisted Solution

by:chapmandew
chapmandew earned 160 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 160 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

If you having speed problem in loading SQL Server Management Studio, try to uncheck these options in your internet browser (IE -> Internet Options / Advanced / Security):    . Check for publisher's certificate revocation    . Check for server ce…
I've encountered valid database schemas that do not have a primary key.  For example, I use LogParser from Microsoft to push IIS logs into a SQL database table for processing and analysis.  However, occasionally due to user error or a scheduled task…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…

649 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