Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to reset count for identity field?
Message
Information générale
Forum:
ASP.NET
Catégorie:
Bases de données
Divers
Thread ID:
00819923
Message ID:
00820368
Vues:
13
OK, thanks Joe, that does help. That's what I'll do.

(BTW, I like your sig <s>)



>>I'm having trouble figuring out how to reset an identity field's sequential count in a table, after I manually delete one or more records.
>>
>>As it is, when I delete the last record in a table, the next record I add adopts the next higher number, as though I hadn't deleted it at all.
>>
>>I tried changing the seed, but that didn't help, so I set it back to 1.
>>
>>TIA,
>>Jeff
>
>You have to delete all of the entries from the ID field after you change it to some other kind of field. Then reset the field type to an identity type. This will not only renumber your ID's but it will render any relationship unreliable as such you should, of course, only do this during development.
>
>HTH,

Read about the greatest fraud in the history of mankind.
See TaxableIncome.net.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform