How would you correctly re-initialize a database?
I could just delete the Database and recreate everything. Or drop then re-create all the tables, the same routine with the indexes. My issue is in developing the application and testing with made up records throughout the database tables, etc., I want to wipe-out all this test data. I could just delete the database file and recreate everything. But, thinking just drop the tables one-by-one and recreate all the tables like I did when I first created the database in the first place, still have that unit that I did in the beginning of the project. Then drop the indexes and recreate.
Question, when you drop the table are the indexes still okay as long as you recreate the tables with the exact same names? Or it appears to drop the table, drop it's indexes and then recreate the tables and indexes. I have the original unit I wrote that created the database in the beginning.