You cannot use the ALTER DATABASE statement on an attached database Explanation: You attempted to alter a database that was already attached. User Action: Either remove the ALTER DATABASE statement or make sure the database being altered is not attached.