DetailPage-MSS-KB

Microsoft small business knowledge base

Article ID: 2877204 - Last Review: August 6, 2014 - Revision: 2.0

Hotfix Download Available
View and request hotfix downloads
 

On This Page

Symptoms

When you run the dbcc shrinkfile statement by using the logical name of a file in a Microsoft SQL Server 2008 R2 or Microsoft SQL Server 2008 database, you may receive the following error message:
Msg 8985, Level 16, State 1, Line 2
Could not locate file 'test_log_issue_log' for database 'test' in sys.database_files. The file either does not exist, or was dropped.


Resolution

Hotfix information

Hotfix for SQL Server 2008 SP3

A supported hotfix is available from Microsoft. However, this hotfix is intended to correct only the problem that is described in this article. Apply this hotfix only to systems that are experiencing this specific problem.

If the hotfix is available for download, there is a "Hotfix Download Available" section at the top of this Knowledge Base article. If this section does not appear, submit a request to Microsoft Customer Service and Support to obtain the hotfix.

Note If additional issues occur or if any troubleshooting is required, you might have to create a separate service request. The usual support costs will apply to additional support questions and issues that do not qualify for this specific hotfix. For a complete list of Microsoft Customer Service and Support telephone numbers or to create a separate service request, visit the following Microsoft website:
http://support.microsoft.com/contactus/?ws=support (http://support.microsoft.com/contactus/?ws=support)
Note The "Hotfix Download Available" form displays the languages for which the hotfix is available. If you do not see your language, it is because a hotfix is not available for that language.

Cumulative update information

Cumulative Update 8 for SQL Server 2008 R2 Service Pack 2

The fix for this issue was first released in Cumulative Update 8. For more information about how to obtain this cumulative update package for SQL Server 2008 R2 Service Pack 2, click the following article number to view the article in the Microsoft Knowledge Base:
2871401  (http://support.microsoft.com/kb/2871401/ ) Cumulative update package 8 for SQL Server 2008 R2 Service Pack 2
Note Because the builds are cumulative, each new fix release contains all the hotfixes and all the security fixes that were included with the previous SQL Server 2008 R2 Service Pack 2 fix release. We recommend that you consider applying the most recent fix release that contains this hotfix. For more information, click the following article number to view the article in the Microsoft Knowledge Base:
2730301  (http://support.microsoft.com/kb/2730301/ ) The SQL Server 2008 R2 builds that were released after SQL Server 2008 R2 Service Pack 2 was released

Status

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

Workaround

To work around the issue, use file_id in the dbcc shrinkfile statement. To obtain a file ID, use the FILE_IDEX system function or query the sys.database_files catalog view in the current database.

More information

For more information about how to use the dbcc shrinkfile statement, go to the following TechNet website:

How to use the "dbcc shrinkfile" statement (http://technet.microsoft.com/en-us/library/ms189493(v=sql.105).aspx)
For more information about how to use the FILE_IDEX system function, go to the following TechNet website:

How to use the FILE_IDEX system function  (http://technet.microsoft.com/en-us/library/ms186275(v=sql.105).aspx)

Applies to
  • Microsoft SQL Server 2008 Service Pack 3, when used with:
    • Microsoft SQL Server 2008 Enterprise
    • Microsoft SQL Server 2008 Developer
    • Microsoft SQL Server 2008 Express
    • Microsoft SQL Server 2008 Standard
Keywords: 
kbqfe kbfix kbsurveynew kbexpertiseadvanced kbhotfixserver kbautohotfix KB2877204
Share
Additional support options
Ask The Microsoft Small Business Support Community
Contact Microsoft Small Business Support
Find Microsoft Small Business Support Certified Partner
Find a Microsoft Store For In-Person Small Business Support