Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Finding NEWLY inserted records..

Status
Not open for further replies.

rasprer

Programmer
Joined
Feb 12, 2004
Messages
102
Location
US
I have a huge problem. I need to find a way to retrieve 'Newly' created records from the table. The table DOES NOT have any datetime fields I can reference nor do I have a field that is defined as an identity column.

Is there anyway that I can retrieve these new records..Say..I write a program to find all the records in the table at 2:pm. Then I stop the program, and run it again at 3:pm. Now I need all the data from 2:pm - 3:pm.

Note...I cannot create any fields in the database nor any table.

Please assist...
 
The only thing I can think of is profiler. You would then be able to see inserts updates etc, but it would be far better to add a single column to the table which logs the creation date...

James Goodman MCSE, MCDBA
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top