Theme Graphic
Theme Graphic

Web Design Company | Web Development Company

EXL Interactive: Website Design Company,Web Development Company specializing in Web Development,Custom Web Applications, Website Design,...

Subscribe

Author

Archive

Open 2010

Tags

Posted on Friday, April 16, 2010 at 4:17 AM

Fixing “Database error...” post SQL Database Corruption


PFS (Page Free Space) pages in SQL Server database not only maintains free spaces, but a lot more than that. Every SQL database file is divided into various PFS intervals, each containing 8088 pages. A PFS page contains a byte-map, which stores one byte for every page included in the PFS interval. Corruption in PFS page results into damage in the stored bytes, further resulting in making your database unmountable. The database records saved in the database become inaccessible after it becomes unmountable. For easy accessibility of records and to save your valuable time, you will need to restore the data from a valid backup. However, in case of backup unavailability or corruption, you will need to use a third-party MS SQL Database Recovery tool, which provides systematic repair.

As a practical example, you receive the below error message while mounting your SQL database:

"Database error: Page P_ID1 is marked with the wrong type in PFS page P_ID2. PFS status 0xVAL1 expected 0xVAL2."

The appearance of the above error message makes your database unmountable, further resulting into inaccessibility of its stored records.

Cause:

The above error message appears when the below bits are improperly set: PFS_IS_IAM_PG (0x10) PFS_IS_MIXED_EXT (0x20) PFS_IS_ALLOCATED (0x40)

Damage in PFS pages can occur either due to logical or physical reasons.

Resolution:

To read your database records and to resolve the error message, you will need to follow the below measures: If the above error arises due to physical damages, then you need to swap the damaged system component with a new component. However, if the message arises due to logical corruption, then you will need to run DBCC CHECKDB, with appropriate repair clause.

While the first resolution provides 100% guarantee to resolve all physical damages, the second falls short to prove successful in all logical corruption scenarios. For such cases, only a third-party SQL Repair application should be used. These MS SQL Recovery utilities systematically scans a logically corrupted database and restores it on default or new destination. Such repair software are self-explanatory and can be easily used by even non-technical users.
Bookmark: Submit To Digg Submit To reddit Submit To del.icio.us Bookmark With StumbleUpon Bookmark With FaceBook Bookmark With Google Bookmarks   Share: Share By Email By Email

0 comments on "Fixing “Database error...” post SQL Database Corruption"
No comments posted yet.

Leave A Comment
Subject:


Comment:
   Bold Italic Underline          Code Link Image Horizontal Rule


Because you do not have or are not logged in to your Programmer's Heaven account, please enter your name.

Name:


To help prevent comment SPAM, please enter the magic code '214' in the box:




Posting Rules
Please follow these rules when posting comments on blog posts.
  • Do not post anything that is racist, hate speech or of a sexual or adult nature.
  • Do not post or link to anything that infringes copyrighted laws.
  • Posting about security or legal topics is fine so long as you are not glorifying or encouraging people to perform illegal activities.
  • Both the author of this blog and the Programmer's Heaven administrators may delete any inappropriate comments without notice at their own discretion.
 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.