apitech
asked on
writing a basic trigger in SQL 2005
I would like to create a trigger in a SQL 2005 database to run a table update script that I have created. I would like the trigger to execute my update script whenever data is inserted or updated into the table. It should not be very complicated.
Could someone please share with me the syntax on how to create such a trigger? I'd be grateful.
Could someone please share with me the syntax on how to create such a trigger? I'd be grateful.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
The link has an example of a Trigger:
http://www.dotnetspider.com/resources/19073-INSERT-UPDATE-using-Trigger-SQL-Server.aspx
THanks
http://www.dotnetspider.com/resources/19073-INSERT-UPDATE-using-Trigger-SQL-Server.aspx
THanks
http://msdn.microsoft.com/en-us/library/ms189799.aspx
http://msdn.microsoft.com/en-us/library/ms190273.aspx
http://ss64.com/sql/ ( 2005 Sql Commands A-Z)
Hope this helpds