Theme Graphic
Theme Graphic

Blogs Home

Welcome to the Programmer's Heaven blogs area! Here you can read blog
posts made by our users, as well as creating and writing your own blog.
Posted on Tuesday, September 20, 2011 at 5:04 AM
Do you get disk space error while working on MS SQL Server? Does your SQL Server database become inaccessible after a series of errors? Well, this behavior usually occurs due to database corruption and lead to data loss. In such critical situations, you need to opt for SQL recovery solutions to get your significant data back.

For example of this problem with your SQL Server database, one of the drives may apparently get damaged when you start SQL Server. Due to corruption, some of the database instances may not start. At the same time, you may get corruption error messages, similar to the following one:

“Error: 9003, Severity: 20, State: 1. The log scan number (23:5736:37) passed to log scan in database ‘master’ is not valid. This error may indicate data corruption or that the log file (.ldf) does not match the data file (.mdf). If this error occurred during replication, re-create the publication. Otherwise, restore from backup if the problem results in a failure during startup.”...

Posted on Friday, May 20, 2011 at 1:12 PM
An API or Application Programming Interface is a specific set of specifications and rules that applications can follow for communicating with each other. It is a depository of routines and protocols that are offered by the operating system to develop applications based on them. Such APIs are also used by Relational Database Management System (RDBMS), such as SQL to perform various operations. However, keeping track of the parameters is extremely important. Using wrong parameters can lead to database corruption and put you in need of SQL recovery solutions.

An SQL Server database administrator can execute the APIs either individually or in a group. Database APIs enable you to save an application programmer’s data on any other programmer’s computer and can also extract data from other systems. However, while running the APIs, you must use the parameters quite carefully. Any wrong parameter can damage the database and make entire database inaccessible...

Posted on Wednesday, March 23, 2011 at 11:43 PM
While working on your SQL Server database, sometimes the database tables become completely inaccessible following any corruption or damage to the database. The reason behind the corruption can be virus attack, file system corruption, application malfunction, simultaneous access by the number of users beyond the upper load limit etc. In any of these situations, the database flashes some sort of error message, which points toward a possible problem with the database. You need to resolve the error to regain access to the database tables. However, if you failed to resolve the issue, there are third-party SQL database recovery tools available, which can help you recover the database back.

The error message that you may have encountered can be read as below:

Table error: Extent P_ID object ID O_ID, index ID I_ID is beyond the range of this database.”

After encountering the error message, you can not be able to access any record from the SQL database and receive the same error, each time you try to access any table...

Posted on Tuesday, March 08, 2011 at 4:33 AM
MS SQL Server is an RDBMS which has provided users with all the essential yet critical elements of a database management system. It is widely used all over the world because of the numerous advantages it offers over various other database systems. Some of them include increased scalability and performance, advanced security controls, deploying and managing enterprise data, monitoring and tuning databases in an effective way etc. Despite these significant achievements, this database is prone to corruption. Corruption in SQL Server database is encountered primarily due to virus infections, operating system errors, multiple user access of the database, read or write errors etc. As a consequence, all the important SQL tables and other components present in the database become inaccessible. To overcome the problem, you need to go for SQL recovery through a reliable third-party tool...

Posted on Wednesday, February 16, 2011 at 3:29 AM
Sometimes, while working in Microsoft SQL, it issues warning messages. A possible database corruption is the reason behind such alarming messages. Though many users ignore such messages and start experimenting with the database, which results in harsher instance of data loss or inaccessibility. Therefore, when your valuable data is lying in the database, handle it with extreme care and it would be wise to use any reliable SQL repair utility to repair the database and recover the data back.

After encountering the error or warning message, which gets flashed every time you try to open the database, the tables in the MS SQL database becomes completely inaccessible. Moreover, repeated occurrence of the error may result in more complex corruption of the SQL database. The error message that you may have come around can be as read as below:

Warning: Page P_ID, slot S_ID in Object O_ID Index I_ID Column COLUMN_NAME value COLUMN_VALUE is out of range for data type "DATATYPE". Update column to a legal value...

Posted on Friday, February 04, 2011 at 3:13 AM
Database indexes are very similar to the page numbers of an encyclopedia or the keyword index used at the back of an encyclopedia. They sort the records present in a database table and help to increase the performance of the database by enabling faster 'SELECT' queries. But, these indexes may get corrupt due to several reasons, such as improper shutdown, human errors, system crashes, abrupt closing of the application etc. This could make your database corrupt and may require you to go for database recovery. Corrupt database indexes may lead to an improper functioning of your database system. You may also see a few incorrect results in the output window for some queries. It may also prevent you from accessing the valuable data stored in your database file. To overcome this situation, you need to perform SQL repair of your corrupt database through a third party utility.

Sometimes, you might have seen the following error message in the MS SQL Server 2000 error log after trying to modify a database table:...

Posted on Monday, January 24, 2011 at 4:30 AM
The metadata structure of SQL Server database comprises of numerous Index pages, which further consist of data pages. The data pages at each level of Index page are linked in a doubly-linked list. Inaccessibility of data stored in the data pages primarily occurs due to breaking of linked list (metadata structure corruption). Additionally, it also results in unmountability of the database. Few main reasons for metadata structure damage are improper system shutdown, virus hits, or physical damage. An easy solution to overcome the metadata structure corruption situation, you will need to restore the data from an updated database backup. However, with case studies proving that database users tend to forget to create an updated database backup, it is always handy to take help of third-party sql database repair applications.

Picture a scenario, where you receive the below error message while you attempt to mount your SQL Server database:...

Posted on Thursday, January 20, 2011 at 9:28 PM
Sometimes when you want to update or delete SQL server database table and got an error message that shows your SQL server database table has been corrupted. This may happen by the several reasons some of them are improper system shutdown, virus attack, hardware failure, power failure and many more. At this situation you will be unable to access your SQL server database table. For fixing this problem you should use an advanced SQL server recovery software that will repair and restore your damaged SQL server database table.

Consider a practical scenario wherein, you may encounter the given below error messages while your are trying to update, delete or open an SQL server database table:

“Error: 644, Severity: 21, State: 5 Could not find the index entry for RID '1613b1000000100' in index page (1:189), index ID 7, database 'TestDB'.. Error: 8646, Severity: 21, State: 1 The index entry for row ID was not found in index ID 7, of table 2009058193, in database 'test644'.”...

Posted on Thursday, January 20, 2011 at 4:11 AM
Users can face consistent issues while working on MS SQL Server 2000 database. Reason being, plethora of errors can hit the database and create an abrupt working situation. Considering a real time scenario, user might come across following error message while working on MS SQL 2000 database:

Object ID O_ID, index ID I_ID: The ghosted record count (HG_COUNT) in the header does not match the number of ghosted records (G_COUNT) found on page P_ID."

Root cause for the above error is damage in the page definitions; this condition makes the record count in header different from the number of ghosted records on the P_ID page.

To resolve the condition, MDF recovery has to be conducted. The methods given below can be followed to fix up the troublesome conditions:

1. Run the hardware diagnostics to make sure there are no hardware errors, if hardware issues are present it will repair them.

2. Formatting the hard disk or reinstalling the operating system can also help in resolving SQL database errors...

Posted on Wednesday, December 08, 2010 at 4:05 AM
Structured query language (SQL) is a database computer language designed for managing data in RDBMs developed by Microsoft corporation. It has two primary query languages, ANSISQL and T-SQL. It offers the facility to access SQL Server database from anywhere, be it from your desktop or data center. It also provides combined services to search, query, report synchronize and analyze the database records. Sometimes it may happen that the SQL Server is unable to run. It may possible that the master database of SQL Server has gone damaged. This can be possible because of several reasons such as human errors, virus infections, power outages while SQL Server was open. In that case, you should replace the damaged database with its clean and backup. However, if the backup is not clean and updated then you should use an advanced sql recovery software to recover SQL database.

Consider a case wherein you have Microsot SQL Server installed on your machine. When you try to log on to the SQL Server, you are unable to do and an error message is appered, that is:...

Posted on Friday, December 03, 2010 at 5:21 AM
A page header in a database page is the first 24-bytes of the page that contains the general information about the page such as the details about the free space pointers. It is, thus, a significant part of the database page, which can pose problems if it gets damaged. The page header damage is possible in different circumstances such as virus infections, unplanned system shutdown when the database is open, power outages, etc. In such cases, you should repair SQL database using appropriate corrective measures. However, if these methods do not work for the database then you should use a third-party MS SQL repair software to perform SQL database recovery.

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

"Table error: Allocation page P_ID has invalid PAGE_TYPE page header values. Type is TYPE. Check type, object ID and page ID on the page."

Cause:...

Posted on Monday, November 29, 2010 at 12:29 AM
The B-trees in the database systems are the data structure that help in storing data in sorted order. As the data is stored in the sorted order, you can easily perform certain database tasks such as adding new records, deleting existing records, searching and retrieving data with lesser turnaround time. These b-trees have certain rules laid out using which all the operations are performed. At times, some nodes in the tree fail to comply with them because of database corruption, thereby damaging the database. In such cases, you should use the in-house methods to repair MDF file, failing which you should resort to using third-party sql repair software to do the needful.

Let us consider 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 B-tree level mismatch, page P_ID1. Level LEVEL1 does not match level LEVEL2 from parent P_ID2.”...

Posted on Tuesday, November 23, 2010 at 12:41 AM
Database corruption in SQL databases can amount to huge losses depending upon the size of your organization. Because of database corruption, you would not be able to access the databases, work on them, and most importantly all the stored records would become vulnerable. But there are certain in-house workarounds that would enable you to perform mdf recovery. However, if these methods do not work then you should use a third-party sql database recovery software to repair the damaged database.

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

“Table error: Object ID O_ID, index ID I_ID, page P_ID, row S_ID. Test (TEST) failed. Values are VAL1 and VAL2.”

Cause:

The most prominent reason for this table error is that the a record has failed while auditing as corruption is detected in its record header.

Resolution:...

Posted on Monday, November 15, 2010 at 4:41 AM
MS SQL Server database is build up of various metadata structure components like, pages, extent, etc. Pages are the smallest unit of data storage that store actual data. A combination of 8 adjacent pages makes an Extent. Corruption or damage in metadata structure primarily results in inaccessibility of records stored in your database. In most of the database corruption situation, you encounter an error message stating the cause for the error. For successful access of records stored in your database and overcoming hazards created by error message, an easy way is to restore the database records from an updated backup. But if in case, your backup file has been corrupted, damaged, or unreadable, then you will need to use advanced repair software that can comprehensively repair MDF files.

Consider a practical case, where you encounter the below error message when you attempt to access the records stored in your MS SQL Server database:

"Table error: Extent P_ID object ID O_ID, index ID I_ID is beyond the range of this database."...

Posted on Wednesday, November 10, 2010 at 10:24 AM
DBCC DBREINDEX is a command used by DBAs to drop a previous index and then re-create a new index. The offline operation helps the DBAs to reorder indexes and recreate new disk space by compacting all the pages. While DBCC DBREINDEX command provides more optimization than executing separate DROP INDEX and CREATE INDEX commands, it is advisable not to use this command very frequently. A tightly packed database index is always a better option because there might be instances when after recreating indexes, the database table becomes corrupt and unmountable. In such situations, it becomes almost impossible to access the records saved in the database.

Furthermore, when a DBA tries to repair the table by using DBCC CHECKTABLE command, s/he might encounter the below error message:

“Server: Msg 8966, Level 16, State 1, Line 1 Could not read and latch page (1:24) with latch type SH. sysindexes failed. Server: Msg 8944, Level 16, State 1, Line 1...

Posted on Tuesday, November 09, 2010 at 4:51 AM
You must have encountered the table error messages while accessing the MS SQL Server database tables. These errors occur because of some integrity issues in the database tables. Sometimes, the integrity issues can take place because of having a corrupt database. And a database can get corrupted because of various internal and external issues such as virus attacks, human errors like improper system shutdown especially when the database is open, sudden power fluctuations, data integrity issues due to mishandling the database such as changing the structure of the database, multiple users trying to change the database table simultaneously, etc. Because of the table errors you can face various problems such as partially or completely inaccessible database, retrieving corrupt records, regularly displaying error and warning messages, and so on. These problems are bound to pose serious threats especially when you are working on a real-time environment. To counter such situations, you can restore the database by overwriting it with its updated backup. However, if the backup is not the updated one then you will have to use the advanced SQL Database Recovery application to repair the corrupt database...

Posted on Saturday, October 30, 2010 at 6:49 AM
Data Purity is an option added to DBCC CHECKTABLE and DBCC CHECKDB commands to validate each column value in all the table rows of a SQL Server database. This command helps the user to ensure that the values saved in the columns are valid. And, in case the values saved in the table are invalid, then a user might encounter a 2570 error message, as listed below:

“DBCC results for 'table2'. Msg 2570, Level 16, State 3, Line 1 Page (1:155), slot 0 in object ID 2105058535, index ID 0, partition ID 72057594038452224, alloc unit ID 72057594042449920 (type "In-row data"). Column "col2" value is out of range for data type "decimal". Update column to a legal value. There are 4 rows in 1 pages for object "table2". CHECKDB found 0 allocation errors and 1 consistency errors in table 'table2' (object ID 2105058535). CHECKDB found 0 allocation errors and 1 consistency errors in database 'realdata'. DBCC execution completed. If DBCC printed error messages, contact your system administrator.”...
Comments: 3 Tags: sql database recovery

Posted on Wednesday, October 27, 2010 at 3:42 AM
Are you getting error messages repeatedly while working on a particular database in MS SQL Server 2000? If yes, then you should check the exact cause of these messages as there may be chances of database corruption. The database corruption can happen due to various reasons including virus infections, malfunctioning of the hardware components, abrupt or unplanned system shutdown while the database is open, etc, which could even make the database inaccessibile. In such cases, you should look for MDF file recovery using appropriate corrective methods, failing which you must use a third-party MS SQL Server recovery software to do the needful.

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

"Page P_ID in database ID DB_ID is allocated to both object ID O_ID1, index ID I_ID1, and object ID O_ID2, index ID I_ID2."

Cause:

The most prominent reason behind this error is that the index definitions in the IAM pages have damaged...

Posted on Tuesday, September 28, 2010 at 2:56 AM
When the server or database system of MS SQL Server 2008 or 2005 crash, it’s very difficult to recover the original data backup with MS SQL code, but its not impossible. MS SQL Server database unlike other databases such as FoxPro can copy data files; the former must have a backup strategy in order to secure data backup recovery. So take an appropriate backup & recovery operation to recover corrupted data, the data of MS SQL Server 2008 and 2005 can be safely protected.

Restore vs. Recovery

Restore and recovery are two different concepts, but in the database recovery process is also closely linked together. The difference between restore and recovery is given below:

Restore is equivalent to rebuild the part or whole of the database from a backup. It can not change the state of database, such as offline and online.

Recovery of database means it restore the database from offline to online state for users to use.

In Microsoft SQL Server database “Recovery” the database will no longer be able to operate the “Restore”...

Posted on Wednesday, September 22, 2010 at 4:23 AM
The smallest unit of database that SQL Server works with is 8Kilobyte (KB). This 8Kilobyte chunk of database is called pages. SQL Server stores data on the disk in pages form. In Memory also SQL Server database manipulates those same 8 Kilobyte (KB) chunks.

Whole record or row must fit within 8KB chunk (page) when data is written to the disk. Sometime a single page can share more than one row. A row cannot span multiple pages. For Example: If an employee table has employee name, address, city, street, house, state, zip, phone then all that combined data must be written in less than a page or 8kilobyte (KB). Few data types like Binary data, LOB of text files and many more which store pointer to the real data can be spread across multiple pages or even in file. All these data are gathered in to the data files on the disk which has either .MDF or .NDF as file extension...

 

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.