SQL Server version 10.50.4000.
I have a table:
create table people
(
national_id char(16),
full_name char(255),
last_visited datetime
)
I want to add a field that will work exactly like a rowversion field, except:
- It must update only when last_visited is changed.
- It needn't be unique on the database but must be unique on the table.
How can I do this?