sql server - SQL IDENTITY COLUMN -


hey guys have sql table statement. lest records have in table have date , identity column autonumbered , defines order transactions displayed in front end client. issue during insert of data have gone missing , transactions between 2 dates missing.

i need insert data table need insert them between dates , not @ end of table.if a normal insert data appear @ end of table , not @ date specify because identity column autonumbered , cannot updated.

thanks

using set identity_insert (table) on, force sql server let insert arbitrary value identity column - there's no way update identity column.

what's big problem few gaps anyway?? yes, might bit of "cosmetic" problem - how hassle , effort really want spend on cosmetic problems?? order of entries still given - gaps.

so again: what's big deal?? identity columns guaranteed ever increasing - that's guarantee. , 99% of cases, that's more enough....


Comments

Popular posts from this blog

javascript - Enclosure Memory Copies -

php - Replacing tags in braces, even nested tags, with regex -