Проверьте это.Вы можете использовать ROW_NUMBER()
--DROP TABLE TestTable
--GO
CREATE TABLE TestTable
(
id INT identity(1,1)
,[Name] VARCHAR(100)
)
GO
INSERT INTO TestTable
VALUES
('A'),('B'),('C'),('D'),('E'),('F')
GO
--DROP VIEW TestView
--GO
CREATE VIEW TestView
AS
SELECT Id
,[Name]
,ROW_NUMBER() OVER (ORDER BY ID) A
FROM TestTable
GO
SELECT * FROM TestView