Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Reseting value of autonumber field
Message
De
10/09/2004 07:38:33
 
 
À
10/09/2004 01:55:44
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Divers
Thread ID:
00940914
Message ID:
00940979
Vues:
15
>Thanks for your speedy respon, but how if the table has referenced by FOREIGN KEY? .. any idea?
>
>Regards
>Winan

Check out SET IDENTITY_INSERT in the Books OnLine. If you are going to do an immediate insert via code after clearing the table, this will allow you to reset the field starting point.
Dan LeClair
www.cyberwombat.com
SET RANT ON - The Wombat Blog

Life isn’t a morality contest and purity makes a poor shield. - J. Peter Mulhern
Disclaimer: The comments made here are only my OPINIONS on various aspects of VFP, SQL Server, VS.NET, systems development, or life in general, and my OPINIONS should not be construed to be the authoritative word on any subject. No warranties or degrees of veracity are expressed or implied. Void where prohibited. Side effects may included dizziness, spontaneous combustion, or unexplainable cravings for dark beer. Wash with like colors only, serve immediately for best flavor.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform