Click here to Skip to main content
15,893,337 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
Hi,

How to find record inserted time in sql server? There is no any date field in the table.

Please give me solution.

Bye
Posted
Updated 9-Jun-19 21:54pm

All of the transactions(insert, delete, update) are logged in MS SQL server and you can see their occurrence time with transaction log file viewers.

And remember that some of them are very expensive and some have compatibility problems so search for suitable one for yourself :

http://www.red-gate.com/products/dba/sql-log-rescue/[^]

http://www.apexsql.com/sql_tools_log.aspx[^]
 
Share this answer
 
 
Share this answer
 
Comments
purnananda behera 9-Nov-11 2:08am    
This link is not helpful.
See this

http://stackoverflow.com/questions/6175326/how-to-find-the-time-of-a-row-updated-into-a-table-in-sql-server-2005[^]

EDIT------>

In that link this is there

Unless you run a trace when the changes happen it is not possible.
 
Share this answer
 
v2
Comments
purnananda behera 9-Nov-11 2:16am    
This link is not helpful.
It contains only Questions.
This Link[^] might help you
 
Share this answer
 
you can user getdate() function available in sql.
 
Share this answer
 
Comments
purnananda behera 9-Nov-11 2:19am    
getdate() will return you current datetime
Rajanand Ilangovan 12-Oct-13 11:26am    
GETDATE() will return current sys time and nothing much.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900