Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Reseting value of autonuimber field
Message
From
11/09/2004 00:53:11
Keith Payne
Technical Marketing Solutions
Florida, United States
 
 
To
09/09/2004 21:24:37
General information
Forum:
ASP.NET
Category:
ADO.NET
Miscellaneous
Thread ID:
00940915
Message ID:
00941272
Views:
12
>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform