Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Reseting value of autonuimber field
Message
De
11/09/2004 00:53:11
Keith Payne
Technical Marketing Solutions
Floride, États-Unis
 
 
À
09/09/2004 21:24:37
Information générale
Forum:
ASP.NET
Catégorie:
ADO.NET
Divers
Thread ID:
00940915
Message ID:
00941272
Vues:
14
>Dear The Expert,
>
>I have autonumber field, there is a delete all record process in my vb.net application, my question is simple how to reset the value of autonumber field back to 0.. I need advise .. thanks
>
>Regards
>Winan

Winan,

Are you asking about resetting the seed in a DataSet or in SQL Server? In SQL Server, the command is "DBCC CHECKIDENT(myTableName,RESEED)". Do not enclose the myTableName parameter in quotes.

For a DataSet, I believe the seed and increment values are stored in the DataTable object. I don't have the property names in front of me, but you should be able to find them very quickly in the VS.NET help files.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform