Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Set @@identity
Message
 
 
À
19/06/2002 11:01:06
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Conception bases de données
Titre:
Divers
Thread ID:
00670134
Message ID:
00670159
Vues:
15
This message has been marked as the solution to the initial question of the thread.
>Hi,
>
>Is there a way in SQL 7/2K to "set" the @@identity value of an EXISTING table/identity field with lots of data already in it to a specific value that the next inserted record will use? I want to "stop" the current identity counter and have it restart with certain numbers.
>

You can use DBCC CHECKIDENT with RESEED parameter. See BOL for details.
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform