Microsoft
Software
Hardware
Network
Question : Trigger on record insert
Hello,
I want to write a trigger where as soon as a record has been inserted into the tablei have a field called 'DateAddedToDB' which i want to update with the day the record was added.
Im not familiar with triggers so im not really sure how to tackle it... any suggestions.
Thanks,
Answer : Trigger on record insert
Assuming that DateAddedToDB is in the same table then the best way to solve this problem is simply to add a DEFAULT value of GETDATE() to the DateAddedToDB.
Random Solutions
Copying Tables in Fox 9
Access 2007 Use regular expressions to find ###.#
MS Draw in a stand-alone form?
How to robocopy and remove EFS on destination files
Access Date Function that is the equivalent of to_char(Date,'w') in Oracle
System Volume Information directory needs purging on Winodws SBS 2003 Server.
Deleting blank rows
Change IP Address of Windows 2000 Domain Controller
VBA Export Tab Delimited text file
Exchange 2007 booking a conference room