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.
I am new to using triggers but would like to set one up so was hoping for some help.
I have two related tables Forumpost and ForumReply.
What I would like to achieve is that when a new record is inserted into the ForumReply table the ForumPost table is updated with the current datetime.
I want to do this at row level and use the ForumPostID field of the newly inserted record in forum reply to select which record to update in forumpost.
The tables are as follows:
ForumPost
----------
ForumPostID
ForumPostMessage
DateUpdated - This is the field I want updating
ForumReply
-----------
ForumReplyID
ForumReplyMessage
ForumPostID - This is the field that links to ForumpostId in ForumPost table.