Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 How to write Trigger

Author  Topic 

jogin malathi
Posting Yak Master

117 Posts

Posted - 2007-03-28 : 08:09:49
hi

I want to audit data before update or delete with modified date,userid,machineid

How to write trigger for it

Example
-------

I have a table as Immigration With Following fields

Employee_id int(foriegn key)
Passport no varchar(50)
Issue date datetime
Expiry date datetime

Iwant to store data or audit data before update or delete data from above table



Malathi Rao

khtan
In (Som, Ni, Yak)

17689 Posts

Posted - 2007-03-28 : 08:15:26
maybe you can take a look at these first.
http://www.sqlteam.com/item.asp?ItemID=3850
http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=55210&SearchTerms=Triggers+to+audit+changes


KH

Go to Top of Page
   

- Advertisement -