<p>Vous insérez des valeurs pour <code>OperationId</code> qui est une <strong>colonne d’identité.</strong></p>
<p>Vous pouvez activer l’insertion d’identité sur la table comme ceci afin de pouvoir spécifier vos propres valeurs d’identité.</p>
<pre><code class="lang-auto">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
</code></pre>