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
VB:NET MSSQL problem write "strings" InsertCommand
Menu accelerators not working
Cisco VPN client issue
Open Form then Hide It
Using Template Files and SendObject in a Macro
AutoDial from Access without Getting the AutoDial Window
SQL DBCC CHECKDB finds errors that it cannot fix
Learning Active Directory
Formatted Crystal Report
asp.net ..for loop - limit to reading first row of DataRow in dtVolumeOrder.Rows()