I am attempting to insert a row manually into my SQL Server data table. This table has 5 columns, one identity and four data columns. I looked at this post, but when I run the s
Usually, omitting the id column would generate a new automatic ID if the column is set so. In your case, you can use
SET IDENTITY_INSERT MyTable ON; INSERT INTO MyTable (id, col1, col2, col3, col4) VALUES (4567, 'Value1', 'Value2', 'Value3', 'Value4'); SET IDENTITY_INSERT MyTable OFF;