Showing posts with label sql repair. sql database recovery. Show all posts
Showing posts with label sql repair. sql database recovery. Show all posts

Thursday, December 30, 2010

Rectifying Error 2537 and Repairing Corrupted MDF File in SQL Server 2008

MS SQL Server is a relational database management system (RDBMS) server that is used by many organizations as backend support. It performs many useful tasks such as defining, modifying, or performing miscellaneous tasks on the database. It uses the.MDF file as its primary database file. However, sometimes the MDF file gets corrupt thereby making the database inaccessible. Such occurrences could happen because of various reasons such as malfunctioning hardware, power outages, virus infections, human errors, etc. In such cases, you should find the cause and apply appropriate method to repair MDF file. If you are not able to do so, then you should use a third-party MDF file repair software to perform.mdf repair.

Consider a scenario wherein you encounter the following error message while working on a SQL Server 2008 database:

"Table error: Object ID O_ID, index ID I_ID, partition ID PN_ID, alloc unit ID A_ID (type TYPE), page P_ID, row ROW_ID. Record check (CHECK_TEXT) failed. Values are VALUE1 and VALUE2."

Cause:

The root cause for this problematic situation is that the a column in the row has not cleared the condition in the CHECK_TEXT statement.

Resolution:

To resolve the issue, you should to perform the following methods, in the given order:

Look for hardware issues: You should check the hardware settings and run hardware diagnostics to ascertain if there is any hardware problem. You can also check the error logs to get the cause of the error. In addition, you can consider reformatting the hard disks and reinstalling the operating system.

Restore from backup: If the problem is not hardware specific, then you should check the backup of the database. If it is updated and clean, then you should restore the database with its backup.

Run DBCC CHECKDB: You should run the DBCC CHECKDB command without any repair clause to determine the corruption level. Then, run this command again with the suggested clause. However, if you are not sure about using this command then you should not use it.

The aforementioned methods would be able to solve the problem. However, at times it may happen that the error reappears or does not get solved in the first place. In such cases, you should use a third-party MDF repair software to solve the issue. Such MDF file repair tools are able to repair MDF file without overwriting the existing file.

Stellar SQL Recovery is an MDF file repair software that is able to repair MDF files from all instances of corruption. It repairs corrupted MDF files created in SQL Server 2000, 2005, and 2008. This MDF repair tool is capable of recovering various database components such as tables, stored procedures, queries, triggers, etc. It is compatible with Windows 7, Vista, Server 2003, XP, and 2000.
Article Source: http://www.articlesbase.com/data-recovery-articles/rectifying-error-2537-and-repairing-corrupted-mdf-file-in-sql-server-2008-3904002.html

About the Author

Mark Willium is a database expert doing research on sql recovery software. For more details visit: http://www.stellarsqldatabaserecovery.com/
»»  Read More...

Thursday, December 23, 2010

How to overcome Error 8921 in MS SQL Server 2000 database

In MS SQL Server, the CHECKTABLE command is used to check the integrity of the database tables. To do this, it uses several parameters to perform different types of checks. However, if the table is corrupt then this command may not work and exit abruptly. Such database corruption may cause because of several issues including virus infections, hardware malfunctioning, etc. These cases can well be solved using appropriate corrective measures failing which you should use a third-party MS SQL repair software to do the needful.

Consider a scenario in which you are running the CHECKTABLE tool on a database in MS SQL Server 2000. However, the tool fails to execute and exits abruptly showing the following error message.

"CHECKTABLE terminated. A failure was detected while collecting facts. Possibly tempdb out of space or a system table is inconsistent. Check previous errors."

Cause:

The reason behind the failing of CHECKTABLE is that the internal query that DBCC uses to acquire parallelism and scalability due to some miscellaneous reason such as database corruption.

Resolution:

The database corruption can be handled using the following MDF repair methods:


Address hardware corruption issues
: You should check if the issues is not being caused due to hardware malfunctioning. You can use the following measures to find out and resolve such issues:

Running hardware diagnostics and fixing any errors that occur while doing so.
Checking Windows application log and MS SQL Server Error log to see whether some error has appeared because of hardware corruption. Try to correct the problem, if possible.
Swapping the hardware components to try and isolate the exact reason of database corruption.
Reinstalling the operating system after formatting the hard disks.


Restore from backup: If the hardware components are perfectly in place, then you should check the state of the database backup. If the backup is clean and updated, then you can restore the database from the backup.

Run DBCC CHECKDB: If the backup solution is not possible, then run DBCC CHECKDB with the appropriate repair clause to repair MDF file.

If the aforementioned methods are unable to resolve the issue, then you should use a third-party MDF file repair software. These database repair tools are extremely safe to use that do not damage the existing while performing SQL repair.

The best SQL database recovery tool that repairs SQL database in most occasions is Stellar Phoenix SQL Data Recovery in MS SQL Server 2008, 2005, 2000, and 7.0. Able to recover various SQL objects including collations, NDF files, tables, stored procedures, triggers, etc, this .MDF repair software is compatible with Windows 7, Server 2008, Vista, Server 2003, XP, and 2000.

Resource taken from here: http://goarticles.com/article/How-to-overcome-Error-8921-in-MS-SQL-Server-2000-database/3838582
»»  Read More...

Thursday, December 9, 2010

Repairing damaged MS SQL Server 2000 database by fixing Error 8943

Corruption in the SQL databases stops you from perform your usual tasks on the databases. Also, in some circumstances the database can become inaccessible as well. Such erroneous situations can arise due to various reasons like virus infections, database header corruption, abrupt or improper system shutdown, etc. To repair SQL database, you can use in-built corrective measures. If these measures are unable to bring normalcy to the database, then a good third-party SQL repair software should be used to do the needful.

Let us assume a situation in which you are getting the following error message while working on the MS SQL Server 2000 database:

“Table error: Object ID O_ID, index ID I_ID, page P_ID. Test (TEST) failed. Slot S_ID, row extends into free space at 0xADDRESS.”

Cause:

The root cause of this problem is that the end of the S_ID slot has crossed the permitted free space offset, ADDRESS.TEST is ‘max <= m_freeData’.

Here, the permitted free space offset is ‘m_freeData’ and the end of S_ID slot is ‘max’.

Resolution:

To overcome this issue, you should use the following methods ideally in the given sequence:

Check and resolve hardware-related errors: In most cases, these issues occur due to malfunctioning of the hardware components. You can check and resolve these issues using the following measures:

Checking the Windows Application logs and MS SQL Server error logs to see whether this error has occurred due to damaged hardware components.
Fixing the errors that appear after running hardware diagnostics.
Checking if the hard disk has write-caching enabled. If yes, then you should contact the local hardware vendor to get it replaced.
Reinstalling the operating system after formatting the hard disks.

Restore from backup: If the problem is not hardware-related, then you should check the state of the database backup. If it is clean and updated, then you should restore the database with its backup.

Run DBCC CHECKDB: You should run the DBCC CHECKDB tool to repair MDF file with the suggested repair clause.

If these methods are unable to provide solution for the damaged SQL database, then SQL repair can be done using a third-party MDF file repair software. These database repair tools are non-destructive in nature that do not modify the original database while repairing the damaged file.

The best MS SQL recovery software is Stellar Phoenix SQL Data Recovery, which repairs SQL databases created in MS SQL Server 7.0, 2000, 2005, and 2008 versions. Compatible with Windows 7, Server 2008, Vista, Server 2003, XP, and 2000, this .MDF repair software restores tables, NDF files, defaults, collations, stored procedures, etc.

Free Download SQL recovery software to see the preview of damaged/corrupted SQL Server database. This article is also posted on http://article-this.com/repairing-damaged-ms-sql-server-2000-database-by-fixing-error-8943/16907
»»  Read More...

Wednesday, October 13, 2010

Recover SQL server database from error or corruption


All the rows of table in the SQL server database are divided into partitions that are represented by number from 1 to n. By default SQL server consider all rows are in a single partition. All the rows of table partition are stored in heap structure or Binary tree. Leaves are used to store the data. The data stored in leaf nodes of leaves are called text data node and other nodes are called text index nodes. Text index nodes are used to store index values for leaf node. Sometimes, you observe that mismatch between the child nodes and their corresponding parents nodes that result table inconsistency. At that time you will be unable to access your database and got an error message. For recovering this situation you need an advanced SQL recovery software to fix the problem.

Given below an error message you might encounter with your SQL database table:

Server: Msg 8961 , Level 23, State

Table error: Object ID O_ID. The text, ntext, or image node at page P_ID1, slot S_ID1, text ID TEXT_ID does not match its reference from page P_ID2, slot S_ID2.

Where, ‘state_number’ might be 1, 2 or 4.

Causes:

The main cuase of this error is mismatch between the childs node and their corresponding parents nodes. Corruption in the text object may be also the couse of error. If you want to know the exact cause for this error message then used state_number which is displaying.

State 1: This situation occurs when timestamps in child node and parent node don’t match.

State 2: This Situation occurs when the size of child node is greater than its parent node.

State 4: This situation occurs when the level of child node is different from what is supposed by its parent node.

Resolutions:

For solving such type of error message, you should follow the given below steps:

• Fix the hardware problem, if any.

• Restore database from last updated backup, if backup is updated available.

• Run DBCC CHECKDB command without repair clause if backup is not available. Again run DBCC CHECKDB but this time with the repair clause.

After performing all the above steps and still you will unable to access your sql database, i will suggest you to use any third party sql recovery software to fix the problem.

Stellar SQL Database Recovery software is a premier tool to repair corrupted SQL server databases. This software is comfortable with the SQL Server 2008, 2005 and 2000. This recovery software repairs primary (MDF) as well as secondary (NDF) files in sql server database.
»»  Read More...