The database that is currently open cannot be dropped or renamed. First use the CLOSE DATABASE statement or end the applications that access the database; then you can drop it.