The database must be opened exclusively (Error 1557)
Commands such as VALIDATE DATABASE RECOVER, PACK DATABASE, and those involving creation or modification of database objects require exclusive access to the database.
Close the database and reopen it using OPEN DATABASEFileName EXCLUSIVE.