This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes JDBC and the fly likes Reset the Auto Number Column Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Databases » JDBC
Reply Bookmark "Reset the Auto Number Column" Watch "Reset the Auto Number Column" New topic
Author

Reset the Auto Number Column

Sri Gnana
Ranch Hand

Joined: Apr 29, 2004
Posts: 166
Hi friends,
I want to reset the Auto Number Coloumn , I'm using MSAccess,can any one help me?


Thanks & Regards
Sri Gnana
Everythings Programmed!...
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

As I remember this is a feature of the access application itself, not SQL so you can't do it through JDBC. But then this is a sort of DBA task, so you shouldn't do it through JDBC anyway.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Sri Gnana
Ranch Hand

Joined: Apr 29, 2004
Posts: 166
Hi Paul
Thanks, i did it.Just i delete the auto number column and again create a new column.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Reset the Auto Number Column
 
Similar Threads
sankar
reset() function in ActionForm class
Primary key generated as 5000000000006877 when generator class used is native
extract data from .csv
Clear the form elements when accessed by clicking on the back button