Showing posts with label ms sql repair. Show all posts
Showing posts with label ms sql repair. Show all posts

Wednesday, March 2, 2011

How to Resolve Error Message 2522 In SQL Server Database

An index is a data structure that reduced the accessing time on a database table and increased the storage space. A record in the table can be easily retried by the using of index. It is created by the using of one or more column of the database table. Both table and index of database table required nearly same space to store. Sometime the index of database table gets corrupted by inserting the wrong value that results, the database will be inaccessible. For fixing this problem a database administrator should use an advanced third party SQL Recovery application.

Consider a practical scenario wherein, you are inserting some value to access the record and got an error message:

“Unable to process index I_NAME of table O_NAME because filegroup F_NAME is invalid”

Root Cause of the Problem:

The root cause of above problem is that one of the file group IDs saved in meta data for indexes do not exist, thats the index cannot be checked.

Way to Resolve: For resolving the above error message, you have to follow the given below steps:

Check Hardware failure: Run hardware diagnostics and correct the problem if any. After fixing the problem, if you have persistent SQL server database corruption then try to swap out different hardware and fix the problem.

Restore From Backup: If the above problem is not hardware related and you are still unable to access the database then restore the corrupted SQL database from clean and updated backup.

Run DBCC CKECKDB Command: If you have no any clean backup then run DBCC CHECKDB command without repair clause to check the extent of corruption. Again run the DBCC CHECKDB command with proper repair clause and isolate the problem.

After trying all the above steps and database corruption is persistent then you should try a third party SQL Server Recovery software to isolate the problem. These third party SQL recovery application are very effective for repair the indexes of SQL server databa

Add caption
se.

Note: Always try demo version of any software before complete download.

Stellar Phoenix SQL Database Recovery is an MDF recovery software that is able to repair MDF as well as NDF files from all instances of corruption. It repairs corrupted MDF, NDF files created in SQL Server 2000, 2005, and 2008. This MDF file repair tool is capable of recovering various database components such as tables, stored procedures, views, collations, queries, triggers, etc. It is compatible with Windows 7, Vista, Server 2003, XP, and 2000.
»»  Read More...

Sunday, February 6, 2011

How to Resolve Error 5171 in Microsoft SQL Server Database

Most of the companies use Microsoft SQL server database for storing their database where database administrator handle all the issue for maintaining the database by the use appropriate SQL server commands. Microsoft SQL server database may be corrupted by Improper system shutdown, hardware failure, SQL Server malfunctioning, virus infection, hardware failure and many more. Once SQL server database gets damaged, the data stored in the SQL Server become inaccessible. In such scenarios, use latest and updated backup, if backup is not updated, then database administrator needs to used a third party MS SQL database recovery software to repair mdf file.

Consider a situation, wherein a database administrator is working on SQL Server database and creating a report. While doing this, the Windows automatically restarts due to power failure. When database administrator restart the system, the SQL server database becomes inaccessible. When the database administrator tries to attach MDF manually, he encounters the given below error message:

“An exception occurred while executing a Transact-SQL statement or batch. _db.mdf is not a primary database file. (Microsoft SQL Server, Error: 5171).”

Or

“C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data\MYDATABASE.mdf is not a primary database file. (Microsoft SQL Server, Error: 5171)”

In such situations, most the database expert recommend to attach a single file. However, when the database administrator uses sp_attach_single_db Stored Procedures, the database administrator encounters the given below error message:

“Server: Msg 5172, Level 16, State 15, Line 1 The header for file path……\.mdf is not a valid database file header. The PageAudit property is incorrect.”

The above problem generally occurs when the Master database file header gets damaged/corrupted or some invalid value is inserted in the master database header file. All of these situations became, inaccessibility of the SQL server database. To accessibility of the SQL server database, the database administrator needs to recover mdf by using the updated backup. But sometime database administrator has not created any backup of its SQL server database, then he needs to perform MDF file repair. To do so, database administrator needs to use an effective and efficient SQL recovery application.

Most of the database experts recommend Stellar Phoenix SQL Recovery software to repair the corrupted mdf file. This software uses an advanced scanning algorithm to repair and recover corrupted mdf file. It is compatible with SQL server 2008, 2005, 2000, and 7.0

Related article is available here: How to restore MSSQL error 5171 
»»  Read More...

Thursday, October 28, 2010

Resolving Error 8925 in MS SQL Server 2000 database using SQL database recovery software

In MS SQL Server databases, the records are stored in the form of pages, which are linked to each other in a sequential manner. Because of being linked to each other, the searching and inserting new records is made easy thereby saving a lot of precious time. However, at times the database are unable to exhibit the expected functionality because of database corruption, which can occur due to various reasons such as virus infections, hardware malfunctioning, abrupt system shutdown, etc. In these circumstances, certain in-build methods can be used to recover SQL database. If these methods do not work, then I would suggest to use a third-party MS SQL Server software to overcome such situations.

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

"Table error: Cross object linkage: Page P_ID1, slot S_ID1, in object ID O_ID1, index ID I_ID1 refers to page P_ID2, slot S_ID2, in object ID O_ID2, index ID I_ID2."

Cause:

The primary cause of this problem is that the P_ID1 page points to another, P_ID2, page in a different object.

Resolution:

You should perform the following methods to recover MDF file in these situations:

* Address hardware-related issues: A lot of times these errors are caused by malfunctioning of the hardware components. You can use the following measures in order to resolve such issues:

o Fixing the errors that appear after running hardware diagnostics.
o Checking the Windows Application log report and MS SQL Server Error log to ascertain whether the error has occured because of hardware malfunctioning.
o Checking if write-caching is enaled on the disks. If yes, then contact the local hardware vendor to get it changed.
o Swapping the hardware components to isolate the actual reason of database corruption.
o Reinstalling the operating system after formatting the hard drive.

* Restore from backup: If the hardware is alright, then you should restore database from the backup if it is clean and updated.

* Run DBCC CHECKDB: If the backup does not solve the problem, then you should run DBCC CHECKDB with the suggested repair clause.

If you still are getting the similar error message even after using these methods, then you need to repair the damaged SQL database using a third-party master database file recovery software. These SQL database recovery tools are able to repair corrupt MDF files without any damage to the existing files.

The best SQL database recovery software that restores various database objects including collations, tables, NDF files, stored procedures, etc, is Stellar Phoenix SQL Data Recovery. Supporting MS SQL Server 7.0, 2000, 2005, and 2008, this .MDF recovery software is compatible with Windows 7, Server 2008, Vista, Server 2003, XP, and 2000.
»»  Read More...

Monday, June 14, 2010

How to Resolve 'Error 823' While Accessing SQL Database?

Are you getting 'Error 823' while accessing an SQL Server database or modifying the database? Are you getting various database inconsistency errors while querying SQL Server database? Well, the problem may take place if your SQL Server database is either inconsistent or damaged. In such critical situations, you must have a complete backup to restore data from it. However, the situations may become worse if there is no current backup in place. At this point of time, you have to opt for SQL recovery tools to get your valuable data recovered.

You may come across the below errors in Windows Application Event Log or MS SQL Server ERRORLOG while performing any operation on MDF (Master Database File) of SQL Server:

"2010-03-06 22:41:19.55 spid58 Error: 823, Severity: 24, State: 2. 2010-03-06 22:41:19.55 spid58 The operating system returned error 38(Reached the end of the file.) to SQL Server during a read at offset 0x000000a72c0000 in file 'C:\Program Files\Microsoft SQL Server\MSSQL10.SQL2008\MSSQL\DATA\my_db.mdf'. Additional messages in the SQL Server error log and system event log may provide more detail. This is a severe system-level error condition that threatens database integrity and must be corrected immediately. Complete a full database consistency check (DBCC CHECKDB). This error can be caused by many factors; for more information, see SQL Server Books Online."

2009-12-09 04:53:49.170 spid25s Error: 823, Severity: 24, State: 2. 2009-12-09 04:53:49.170 spid25s The operating system returned error 21(The device is not ready.) to SQL Server during a read at offset 0x00000000132000 in file 'D:\tempdb\tempdb_data.mdf'. Additional messages in the SQL Server error log and system event log may provide more detail. This is a severe system-level error condition that threatens database integrity and must be corrected immediately. Complete a full database consistency check (DBCC CHECKDB). This error can be caused by many factors; for more information, see SQL Server Books Online.

Cause:

The Error 823 may occur due to either SQL Server database corruption or I/O errors in the database. The error usually indicates that that there are some inconsistency in file system or the database file is corrupt.

Resolution:

To recover SQL server database, use any of the below methods:

Run Chkdsk to find file system inconsistency issues and resolve it.

Use DBCC CHECKDB utility to try repairing the damaged database.

If the above methods can not perform MS SQL recovery, You need to use third party applications to repair and restore the damaged database. The MDF Repair software performs safe, quick, easy, and absolute recovery in all MDF corruption situations.

For More Information Visit: http://ezinearticles.com/?How-to-Resolve-Error-823-While-Accessing-SQL-Database&id=4396378
»»  Read More...

Thursday, May 27, 2010

Rectifying Error 5228 in SQL Server 2008

When you use the DML (Data Manipulation Language) commands to update the database, the rows sometimes get in an intermediate state. It is called the antimatter state that enables concurrent DELETE statements to leave a pointer for the index builder transaction so that deleted rows are not inserted again. Ideally, these rows should be deleted at the end of the operation. However, sometimes it does not happen that invariably results in database corruption. To resolve this situation, you should use appropriate corrective methods. However, if you are unable to do so then you should use a third-party MDF repair software to address the issue.

Consider a scenario wherein you are working on a table in SQL Server 2008. You get the following error message while performing some modifications on the database table:

“Table error: Object ID O_ID, index ID I_ID, partition ID PN_ID, alloc unit ID A_ID (type TYPE), page PG_ID, row R_ID. DBCC detected incomplete cleanup from an online index build operation. (Antimatter column value is VALUE.)”

Cause:

The root cause of this error message is that for the O_ID object , I_ID index, and PN_ID partition, there is an unfinished online index build was detected. This is testified by the presence and the displayed value of an antimatter column on the R_ID row.

Resolution:

To resolve this error message, you should perform the following methods, preferably in the given order:

Check for hardware issues: You should run the hardware diagnostics and check if the error appeared because of any hardware issue. You can also try to swap the hardware components to zero in and resolve the issue. In addition, you can try to reformat the disk and reinstall the operating system.


Restore from backup
: Check if you have a clean and updated backup of the database. If yes, then you should restore the database with its backup.

Run DBCC CHECKDB: As a last resort, you should run the DBCC CHECKDB command without the repair clause to ascertain the level of the corruption. You should run the command again after knowing the repair clause. It will rebuild the corrupted indexes.

However, if you still are not able to resolve this error by any which method then you should use a third-party SQL recovery software. Such read-only tools are able to recover SQL database using sophisticated scanning algorithms without overwriting the original data.

Stellar Phoenix SQL Recovery is an MS SQL recovery software that enables you to recover corrupted databases created in SQL Server 2000, 2005, and 2008. It is competent enough to restore various objects of SQL database such as tables, queries, stored procedures, triggers, views, etc. This SQL recovery software is also able to preserve the database constraints and user-defined data types. It is compatible with Windows 7, Vista, Server 2003, XP, and Server 2000.
»»  Read More...