I used below SQL to create a table with auto_increment primary key,but found after truncate the table the primary key is not reset to zero ,because after insert data to it the primary key continues to increase from the last time truncate. I believe the primary will be too large to cause the overflow. how to solve it?
CREATE TABLE dbo.BM_SM_ERR
(
SMCWBM int identity, -- primary key
SMCWDM varchar(10) NOT NULL,
PRIMARY KEY CLUSTERED (SMCWBM)
)
with identity_gap=1
sybase version Adaptive Server Enterprise 15.7