SQL Server error code
SQL Server error 5161
SQL Server raises error 5161 at severity 16, which marks a problem with the query or data that you can correct.
An unexpected file id was encountered. File id %d was expected but %d was read from "%.*ls". Verify that files are mapped correctly in sys.master_files. ALTER DATABASE can be used to correct the mappings.
| Msg | 5161 |
|---|---|
| Severity | 16 |
| Group | 5000–5999 |