Friday, October 23, 2009

How to convert timestamp data to date data (datetime datatype) in SQL Server?

The name timestamp is a little misleading. Timestamp data has nothing to do with dates and times and can not be converted to date data. A timestamp is a unique number within the database and is equivalent to a binary(8)/varbinary(8) datatype. A table can have only one timestamp column. Timestamp value of a row changes with every update of the row. To avoid the confusion, SQL Server 2000 introduced a synonym to timestamp, called rowversion.

Share This!


No comments:

Powered By Blogger · Designed By Seo Blogger Templates