Event ID - 5180

Event Id5180
DescriptionCould not open FCB for invalid file ID %d in database '%.*ls'.
Event Information"According to Microsoft

The locations of all the files in a database are recorded in both the master database and the primary file for the database. You will see the above error if the information stored in the primary file points to a secondary data file or a log file that does not exist or to a secondary file or a log file whose header information does not indicate it is part of the same database as the primary file.
The specified file may be corrupted.
Often this error occurs because one or more log files associated with a database has been deleted in an attempt to shrink the log. Deleting the log file is not a supported method to shrink the log. For more information about the supported way to shrink the transaction log, see Microsoft Knowledge Base article 272318.
Follow these steps:
1.Verify that the specified file is not on a compressed volume. For more information about compressed volumes, see Microsoft Knowledge Base 31347
2.Verify that the specified file is not corrupted.
If you see this error when you try to replace, restore, or attach a database:
1.Verify that you have specified the correct physical file name.
2.Verify that the path to each physical file matches the path stored in the primary file.
3.Verify that all files specified belong to the same physical database.
4.If the specified file has been copied from another location, verify that the copy completed with no errors.
If you see this error in the SQL Server error log after your database has been marked suspect:
1.Verify that the file specified in the message still exists in the expected location.
2.Verify that there is available disk space on the drive where the file resides.
3.Restore the specified file and/or the entire database from a known good backup.
For additional help to resolve this error, contact Microsoft Product Support Services."
Reference LinksEvent Id:5180 of Source Id:MSSQLServer

Catch threats immediately

We work side-by-side with you to rapidly detect cyberthreats
and thwart attacks before they cause damage.

See what we caught

Did this information help you to resolve the problem?

Yes: My problem was resolved.
No: The information was not helpful / Partially helpful.