GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Testing  >  DataBase Testing
Go To First  |  Previous Question  |  Next Question 
 DataBase Testing  |  Question 24 of 50    Print  
How to check a trigger is fired or not,while doing Database testing?

  
Total Answers and Comments: 6 Last Update: May 19, 2008     Asked by: LoniT 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
August 01, 2006 00:41:38   #1  
ganesh        

RE: How to check a trigger is fired or not,while doing...
It can be verified by querying the common audit log where we can able to see the triggers fired.
 
Is this answer useful? Yes | No
August 01, 2006 13:45:16   #2  
LoniT        

How to check a trigger is fired or not,while doing...

Ganesh

can you be a little elaborate on that.

If possible using a query while explaining would be useful.

Thanks.


 
Is this answer useful? Yes | No
August 01, 2006 13:54:54   #3  
LoniT Member Since: July 2006   Contribution: 13    

RE: How to check a trigger is fired or not,while doing...

Ganesh

Can you be a little descriptive?

Thanks.


 
Is this answer useful? Yes | No
September 13, 2006 10:50:28   #4  
Nik_Agarwal Member Since: September 2006   Contribution: 60    

RE: How to check a trigger is fired or not,while doing...
I have worked on SQL and in SQL the actions you perform on database are stored in a log file you can go to the log file and check manually if the trigger has executed or not.
 
Is this answer useful? Yes | No
May 09, 2007 02:35:42   #5  
Amit Bansal        

RE: How to check a trigger is fired or not,while doing...
I am using SQL SERVER. In SQL SERVER there is a tool SQL Profiler. Using SQL Profiler you wll check a trigger is fired or not. You will also check if trigger is fired then whats the output of fired trigger.
 
Is this answer useful? Yes | No
May 19, 2008 07:47:58   #6  
arunatrimurti Member Since: May 2008   Contribution: 1    

RE: How to check a trigger is fired or not,while doing Database testing?
Step 1 ) First we should know what the trigger is doing this we discuss with development team or else tester should be able to know it with knowledge of tables or by reading the trigger in the database.

Step 2) e.g say on inserting a record in table 1 a trigger is fired which updates table 2 .
Now to test this trigger u insert a record from front end check its entry in table 1.Then check whether the record is updated accordingly in table2.This should be done automatically due toi trigger.If recors is updated in Table 2 that means trigger is fired else not fired.

I have not done Database testing but I am good at SQL so thought we can do this way I am sure we can do it this way.If some other method is available please do let me know.

 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape