I read several times to convert the timestamp to any readable format but I am not able to decide when to use timestamp datatype or datetime datatype to keep track of records inserted or updated in database in sql server 2008.
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.
timestampis deprecated, do not use this type. Its role has been replaced by therowversiontype, which is a synonym for timestamp:As a type,
timestamp(androwversion) has absolutely no relation to dates, time or anything chronological:If you need to track the time when a record was inserted or updated, use
DATETIME2, at the desired precission.