Select the product you need help with
SQL Server database files are incorrectly marked with the sparse attributeArticle ID: 2028447 - View products that this article applies to. SYMPTOMSYou notice that the database files of normal databases [not database snapshots] are marked as is_sparse = 1 in the catalog views sys.database_files and sys.master_files. When you query the file attributes using fsutil sparse queryflag <database file name>, you get the result: This file is set as sparse You might also notice unexplained performance degradation when query data from these files. CAUSEThe file system incorrectly marks these database files as sparse after an alternate stream is removed. Alternate streams are used by DBCC CHECKDB family of commands. RESOLUTIONDepending upon the version of the SQL Server you are using, the steps to resolve this situation varies. Refer to the blog Did your backup program/utility leave your SQL Server running in an squirrely scenario?
(http://blogs.msdn.com/psssql/archive/2009/09/23/did-your-backup-program-utility-leave-your-sql-server-running-in-an-squirrely-scenario.aspx)
Evaluate and apply the related fixes for the file system: You cannot restore large files in the NTFS file system when all the data streams that have sparse attributes are deleted in the 64-bit version of Windows XP SP2 or in Windows Server 2003 SP2
(http://support.microsoft.com/default.aspx?scid=kb;EN-US;973886)
Error message when you run the "chkdsk" command together with the "/v" switch on a Windows Server 2003-based computer: "Correcting sparse file record segment <number>"
(http://support.microsoft.com/default.aspx?scid=kb;EN-US;932021)
MORE INFORMATIONFor more information about the products or tools that automatically check for this condition on your instance of SQL Server and on the versions of the SQL Server product, see the following table: Collapse this table
Properties |


Back to the top








