Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

upsize_ts column in legacy database - what does it mean?

We have to work with legacy database and many tables have a column called upsize_ts of datatype timestamp not related to the data stored.

What is its purpose? Is this some sort of rowversion column? Can we delete that column?

like image 432
nihique Avatar asked Jan 01 '13 20:01

nihique


2 Answers

I have found, that "upsize_ts" column is created when upgrading MS Access database to MSSQL using Upsizing wizard:

Upsizing is the process of migrating some or all database objects from a Microsoft Access database (.mdb) to a new or existing Microsoft SQL Server database or new Microsoft Access project (.adp).

The upsize wizard documentation mentions following:

Timestamp Columns By default, the Upsizing Wizard creates new columns with the data type of timestamp in SQL Server tables generated from Microsoft Access tables that contain floating-point (single or double), Memo, or OLE fields.


Can we delete that column?

This field should not be deleted if database will still be used by MS Access (which is case for our app).


More About Upsizing Wizard:

http://office.microsoft.com/en-us/access-help/use-the-upsizing-wizard-HP005273009.aspx

like image 149
nihique Avatar answered Oct 31 '22 22:10

nihique


Is this some sort of rowversion column?

Yes, it is. In versions of SQL Server before 2008, TIMESTAMP is the equivalent to ROWVERSION.

Can we delete that column?

No one can answer that for you - you need to find out if it really is not used anywhere.

like image 31
Oded Avatar answered Oct 31 '22 20:10

Oded