Ask a Question related to Coldfusion Database Access, Design and Development.
-
OldNapkin #1
How to Track When a Record Gets Updated
I'd like to be able to automatically store the date and time that a record gets
updated. I currently stamp the record when it's first created by having a field
with a default value of GETDATE(), but I can't seem to find an easy way to
track the updates.
Thanks!
OldNapkin Guest
-
Keep track of who creates a record
Hi Is there an easy way to keep track of which user that created a record in a database? Who created the record and (if possible) who did som... -
using dropdown box to display db record & update record
Hi Folks, I have a web database written in asp and using access97. I have many projects, but each project is being held responsible by a person.... -
Datagrid not updated during delete, but updated during insert and update
Hello everyone. A test webform here, single datagrid bound to one table through dataset, and controls to delete, update and insert data. The code... -
Imported + updated symbols don't stay updated
Hi everybody. I apologize for posting a question that probably any newbie should know, but ... I'm a rank Fireworks newbie. My problem is that the... -
Stop adding record in subform after record count = 1
Can someone help in in what to put after the THEN statment to allow one entry if the Record count is =>1 in the Before insert or should I set the... -
jdeline #2
Re: How to Track When a Record Gets Updated
Why not create a field that contains the latest update date?
jdeline Guest
-
OldNapkin #3
Re: How to Track When a Record Gets Updated
I have a field - I'm looking for a function in the database to update the
field with the date and time when the record gets updated. I know I could
update it with a query from ColdFusion, but I'd like it all to just happen
automatically within the DB.
OldNapkin Guest
-
paross1 #4
Re: How to Track When a Record Gets Updated
To expand on Dan's post....
Phil
Syntax
CREATE TRIGGER trigger_name
ON { table | view }
[ WITH ENCRYPTION ]
{
{ { FOR | AFTER | INSTEAD OF } { [ INSERT ] [ , ] [ UPDATE ] }
[ WITH APPEND ]
[ NOT FOR REPLICATION ]
AS
[ { IF UPDATE ( column )
[ { AND | OR } UPDATE ( column ) ]
[ ...n ]
| IF ( COLUMNS_UPDATED ( ) { bitwise_operator } updated_bitmask )
{ comparison_operator } column_bitmask [ ...n ]
} ]
sql_statement [ ...n ]
}
}
paross1 Guest



Reply With Quote

