In MySQL, I could fire off these statements to insert 5 rows in one shot:
CREATE TABLE t (id int primary key auto_increment)
INSERT INTO t VALUES (DEFAULT),(DEFAULT),(DEFAULT),(DEFAULT),(DEFAULT)
How can I do the same thing in MS SQL Server?
P.S. The reason that the suggested duplicate doesn't solve the problem is that it has tables with non-identity columns. My Table only has an identity column.
An explicit value for the identity column in table 't' can only be specified when a column list is used and IDENTITY_INSERT is ON.id. Maybe you should consider a change to your schema.