| View previous topic :: View next topic |
| Author |
Message |
lsg Guest
|
Posted: Mon Jun 12, 2006 8:10 am Post subject: Hot to detect MSSQL trigger |
|
|
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
|
Posted: Mon Jun 12, 2006 6:41 pm Post subject: Re: Hot to detect MSSQL trigger |
|
|
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
|
Posted: Mon Jun 12, 2006 7:31 pm Post subject: Re: Hot to detect MSSQL trigger |
|
|
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
|
Posted: Tue Jun 13, 2006 8:11 am Post subject: Re: Hot to detect MSSQL trigger |
|
|
| 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 |
|
 |
|