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
Line position
MS Outlook and Amicus Atorney
Can't connect to SQL server 2008 (error 40 could not open a connection to the SQL Server)
Dynamically changing WCF sendTimeout
Pb in sharepoint MOSS 2007 with explorer view - webdav
"Unrecognized tag prefix or device filter 'cc1'"
Collection declartaion in VBA
opposite of IsNull
multiple parameters in MS Access 2003
How many sort arguments can I use ?