July 9, 2010 at 3:42 am
Hi,
Can anyone tell me
How do i retrieve the Time stamp of the inserted record without adding the timestamp columns to the table used.
July 9, 2010 at 4:42 am
You're wanting to retrieve a value that you're not actually storing anywhere?
Or do you mean that you want to return whatever the current timestamp is at the time of insertion? And do you mean the timestamp value, or the current datetime?
July 9, 2010 at 6:13 am
Jim is right, there is no hidden field anywhere that tracks WHEN an item was inserted or updated. if you don't have a column for it, you'll have to add it eithe rto the table, or to an auditing table with a trigger.
another alternative is a DML Data Manipulation Language trace, which could be used to track when changes occur, but is not as granular as a field in the data row itself. a trace can capture the UPDFATE statement, and you can infer that the column changed, but itwouldn't show old/new values in the trace.
Lowell
July 9, 2010 at 6:25 am
Yes I want to retrieve a value that I m not actually storing anywhere?
I am Not taking any columns for creation date or modification date in tha table and storing it but i want the values.
Is it possible by accessing in anyway the log files...
Viewing 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply