I have a table A having columns Family ID, Name, Addr. How I can find recently modified rows in the table? Is that can be done without adding any more column in the table?
I have a table A having columns Family ID, Name, Addr . How I
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
No, SQL Server does not track when a row was added to a table or modified. You would need to do this by adding a column:
Of course this will set all existing rows to now, so it will only work for new rows going forward. If you want modified time also, you can add an additional column:
And keep it up to date with a trigger: