BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Hot to detect MSSQL trigger

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (ADO)
View previous topic :: View next topic  
Author Message
lsg
Guest





PostPosted: Mon Jun 12, 2006 8:10 am    Post subject: Hot to detect MSSQL trigger Reply with quote



Hi,
I don't know which newsgroup should i refer to. If anyone know
how to solve my problem pls help me. tks.
I need to know how to detect a trigger action has been perform
in a MSSQL table(eg. abc). where abc is a table for program
abc. but i need to write a program to detect the changes
(Insert, Delete, or Update) of the table. Someone told me that
i can use the trigger to do so. but i have no idea how to do
it. Does anyone know any web site that i can refer to where i
can find example or info how to do it? Thanks in advance.


lsg
Back to top
Darren
Guest





PostPosted: Mon Jun 12, 2006 6:41 pm    Post subject: Re: Hot to detect MSSQL trigger Reply with quote



Basically it is just an event procedure assigned to a server dataset.

The trigger happens server side. You need to create it using Enterprise
Manager or some other utility.
Back to top
lsg
Guest





PostPosted: Mon Jun 12, 2006 7:31 pm    Post subject: Re: Hot to detect MSSQL trigger Reply with quote



Hi,
How do i link it with Delphi? i mean how can Delphi program
receive those "affected" records from the trigger that happen
to the table? OR do i need to create a table to store this
data and then I have retrieved those data from the Delphi program?

Tks a lot.

lsg

"Darren" <D arren @pclegends.com> wrote:
Quote:
Basically it is just an event procedure assigned to a server dataset.

The trigger happens server side. You need to create it using Enterprise
Manager or some other utility.


Back to top
Brian Bushay TeamB
Guest





PostPosted: Tue Jun 13, 2006 8:11 am    Post subject: Re: Hot to detect MSSQL trigger Reply with quote

Quote:
How do i link it with Delphi? i mean how can Delphi program
receive those "affected" records from the trigger that happen
to the table? OR do i need to create a table to store this
data and then I have retrieved those data from the Delphi program?
Yes you will need to have the trigger write to a table if you want to save the

information that the trigger processes
--
Brian Bushay (TeamB)
Bbushay (AT) NMPLS (DOT) com
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (ADO) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.