Définir une valeur Identity sous Sql Server
2005-09-20 #code-snippets#sql
SET IDENTITY_INSERT MyTable ON;
INSERT INTO MyTable
(MyIdentityField, MyFirstField, MySecondField)
VALUES
(12345, 'ABCDE', 'etc...');
SET IDENTITY_INSERT MyTable OFF;