thx erland, this did not work on 2019
select @@version
drop table revised1
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[revised1](
[ID] [int] IDENTITY(1,1) NOT NULL,
whatever char(1),
row_version_stamp timestamp,
[ROW_VERSION_NUMBER] AS (CONVERT([bigint],[ROW_VERSION_STAMP])) --persisted
CONSTRAINT [PK_revised1] PRIMARY KEY CLUSTERED
(
[ID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
create index ix1 on revised1(ROW_VERSION_NUMBER) where row_version_number > 7
the upload image mechanism doesn't seem to be working but this is the error
Msg 10609, Level 16, State 1, Line 21
Filtered index 'ix1' cannot be created on table 'revised1' because the column 'ROW_VERSION_NUMBER' in the filter expression is a computed column. Rewrite the filter expression so that it does not include this column.