I have a filled SDF database file, I need to clean every record of tables. But if I do it by hand, Primary keys will not start with 1 after add record in table. And records will create with id (for example 4091+). So, how can I delete all data and set all primary keys to 1.
My database is too large and have many associations, because of this I cannot just delete all tables and create new. It takes a lot of time.
Sorry for my English.
Thank you.
You have to
truncatethe table…Truncatedeletes all the record along with resetting the id equal to 0.If TRUNCATE not available in your database, you can simply delete the record
DELETE from tbl_nameand reset the Identity column in following way: