If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ANSI SQL > triggers versus transaction ,Performance wise

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-07-04, 03:07
pooja_golechha pooja_golechha is offline
Registered User
 
Join Date: Apr 2004
Posts: 1
triggers versus transaction ,Performance wise

hi can any one tell me which is a better option for a multiuser ,remote database Performance wise........Trigger ,Stored Procedure,OR transaction ......
I have to find an architecture for audit trail..........
Poojagolechha
Reply With Quote
  #2 (permalink)  
Old 04-07-04, 03:39
Saravanan.R Saravanan.R is offline
Registered User
 
Join Date: Feb 2004
Location: India
Posts: 135
Hi

look up the following Link!

http://dbforums.com/arch/57/2003/8/866313
Reply With Quote
  #3 (permalink)  
Old 04-07-04, 08:14
andrewst andrewst is offline
Moderator.
 
Join Date: Sep 2002
Location: UK
Posts: 5,171
Re: triggers versus transaction ,Performance wise

If by "audit trail" you mean tracking inserts, updates and deletes on a table then triggers are the obvious choice. The triggers would likely call a stored procedure that handles the common code.

Unless of course your DBMS has a built-in way of auditing that doesn't require you to write your own code.
__________________
Tony Andrews
http://tinyurl.com/tonyandrews
Reply With Quote
  #4 (permalink)  
Old 04-07-04, 08:21
Pat Phelan Pat Phelan is offline
Resident Curmudgeon
 
Join Date: Feb 2004
Location: In front of the computer
Posts: 12,605
Re: triggers versus transaction ,Performance wise

Quote:
Originally posted by pooja_golechha
hi can any one tell me which is a better option for a multiuser ,remote database Performance wise........Trigger ,Stored Procedure,OR transaction ......
I have to find an architecture for audit trail..........
Poojagolechha
Better than what? Aside from that, which database engine (DB2, MS-SQL, MySQL, Oracle, etc) are you using now?

-PatP
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On