You can enable / disable the insertion of identity values using SET IDENTITY_INSERT On / Off :
To enable custom values:
SET IDENTITY_INSERT TableName ON
To enable automatic values:
SET IDENTITY_INSERT TableName OFF
Note that you must explicitly specify columns (non-empty) if you want to insert identification values, for example here:
INSERT INTO TableName (ID, Text, OtherColumns...) Values (99, 'foo', ...)
You cannot omit the column list with this syntax:
INSERT INTO TableName Values (99,'foo')