Although this cannot be done in the GUI, you can get auto-increment simply by using the IDENTITY (start, increment) data type:
CREATE TABLE "dbo"."TableName" ( id int IDENTITY(1,1) PRIMARY KEY NOT NULL, name varchar(20), );
the insert statement should display all columns except the id column (it will be populated using a value with auto-increments):
INSERT INTO "dbo"."TableName" (name) VALUES ('alpha'); INSERT INTO "dbo"."TableName" (name) VALUES ('beta');
and result
SELECT id, name FROM "dbo"."TableName";
will be
id name -------------------------- 1 alpha 2 beta
andrej Sep 18 '14 at 13:44 on 2014-09-18 13:44
source share