Sparx Systems Forum
Enterprise Architect => General Board => Topic started by: Supe on March 28, 2017, 01:28:08 pm
-
Hi all,
Does anyone know how to create a int, identity column?
e.g.
create table [dbo].[ServiceGroupLookup] (
[ID] [int] not null identity,
[DelayBetweenOperationsInMilliseconds] [int] not null,
[Name] [varchar](50) not null,
[LastModifiedByUsername] [varchar](100) not null,
[LastModifiedDateTime] [datetime2](7) not null,
[RecordRowVersion] [rowversion] not null,
primary key ([ID])
);
-
Database Builder - Column Properties...
http://www.sparxsystems.com/enterprise_architect_user_guide/13.0/model_domains/createcolumns.html (http://www.sparxsystems.com/enterprise_architect_user_guide/13.0/model_domains/createcolumns.html)
-
Adding "Identity" to the Initial attributes generates the table in SQL with the word "default" which throws out an error. Can this be removed?
-
Select your table in the Database Builder, select your identity column, set AutoNum to true in column properties list at lower left.