Seaquel
SQL Server error code

SQL Server error 3166

SQL Server raises error 3166 at severity 16, which marks a problem with the query or data that you can correct.

RESTORE DATABASE could not drop database '%ls'. Drop the database and then reissue the RESTORE DATABASE statement.
Msg3166
Severity16
Group3000–3999

Source: Database Engine events and errors