I read some threads that indicated that there are 2 ways to reset a counter id field. First way is to delete contents of data and then do a compact. The other is to delete data, remove field and then add back the field. I had been doing the compact way and it works, however I would like to automate this and thought about doing it the second way as I need to perform several steps after the counter has been reset since compacting won't allow me to continue from where I left off. I created several DDL queries to alter the table to remove and add the counter id field. Unfortunately, this did not reset the counter as appending data continued from whereever the last number left off. (Even when I manually deleted the data, removed the field and added it back the counter didn't reset) Any thoughts on automating the reset would be greatly appreciated.