sql server - MS SQL: Maximum / Cap on Unique ID / Unique Key? -OR- best way to reset key -


i have nightly schtasks / cron jobs delete entries in database table , dump updated data said table. understandably, unique id / key each row increments each nightly delete , update. database running on ms sql server.

my question: unique key ever hit maximum / cap @ point in future? or maybe, should not worry question , reset unique key part of every nightly schtasks job? note: key not being used foreign key, ok reset it.

is recommended sql command reset key?: https://technet.microsoft.com/en-us/library/ms176057.aspx

try use truncate instead of delete, unique id / key auto reset beginning, don't need worry it.

truncate table tablename 

see https://msdn.microsoft.com/en-us/library/ms177570.aspx details


Comments

Popular posts from this blog

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -