You're inserting values for OperationId
that is an identity column.
(您要为作为标识列的 OperationId
插入值。)
You can turn on identity insert on the table like this so that you can specify your own identity values.
(您可以像这样在表上打开标识插入,以便可以指定自己的标识值。)
SET IDENTITY_INSERT Table1 ON
INSERT INTO Table1
/*Note the column list is REQUIRED here, not optional*/
(OperationID,
OpDescription,
FilterID)
VALUES (20,
'Hierachy Update',
1)
SET IDENTITY_INSERT Table1 OFF
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…