|Message:||Could not open FCB for invalid file ID %d in database ‘%.*ls’.|
|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:
If you see this error when you try to replace, restore, or attach a database:
If you see this error in the SQL Server error log after your database has been marked suspect:
For additional help to resolve this error, contact Microsoft Product Support Services.