Summary: MDF File Recovery
Stellar Phoenix SQL Database Recovery Software Recover And Repair Corrupt & Damaged MDF File.
SQL Server 2008 is the best tool for database developers and
administrators as it incorporates some of the major improvements
over the earlier versions. It has support for large data sets and
the ability to handle multiple users. The new 'Performance
Studio' provides you with a collection of tools for easy
monitoring and troubleshooting the system. It allows you to build
up an efficient policy management system and help database
administrators in carrying out various administrative tasks.
Regardless of all these benefits, there are various contingencies
that lead to corruption in the SQL databases. The potential
reasons behind database corruption include virus infection,
hardware failures, operating system bugs, etc. As a consequence,
all the valuable objects in the SQL database become inaccessible.
In order to recover your lost invaluable data, you should perform
SQL recovery through proficient third-party software.
IAM chain corruption is a common occurrence on SQL Server 2008.
This is usually accompanied by the below given error by DBCC
CHECKDB:
"
Msg 2576, Level 16, State 1, Line 1
The Index Allocation Map (IAM) page (0:0) is pointed to by the
previous pointer of IAM page (1:153) in object ID 0, index ID -1,
partition ID 0, alloc unit ID 72057594042384384 (type Unknown),
but it was not detected in the scan."
The system table 'sysallocunits' usually has a reference to the
first IAM page, the root page, and the first page. The above
error says that metadata does not include a reference to the
first IAM page in the IAM chain (page 1:153). This indicates
corruption in the 'sysallocunits' system table.
If you try to use the 'repair_fast' and 'repair_rebuild' options
in this case, you may get no significant results. In order to
resolve the issue, you may try the following series of steps:
- Start a transaction
- Write the rowcounts for all system
objects and tables in your database.
- Now use CHECKDB for repairing the
database.
- Make sure that the problem is resolved
and the error is not seen again
- Rerun DBCC CHECKDB to verify the
database.
- Examine the rowcounts once again.
- Commit the transaction
The 'repair_allow_data_loss' should be the minimum repair level
for this case. If the problem persists, you may try professional
SQL 2008 database recovery software. These
third-party tools extensively scan SQL databases to recover
damaged or inaccessible objects, including tables, views,
indexes, constraints, triggers, etc. Moreover, they are
compatible with Windows 7, Server 2008, Vista, Server 2003 and
XP.
Date Published: Apr 02, 2012 - 2:08 am
In this blog post, I will try to explain all possible steps that you will
have required to repair your corrupt SQL server database. Let's
consider a case where you are working on SQL server database,
trying to access some records from a table. During table access
process you have got an error message that specifies, you can't
access desired table due to database corruption. Corruption in
SQL server tables can happen due to several reasons; some most
prominent reasons are virus attack, power outage, improper
system shutdown, hardware failure etc.
What to Do Now? It is the first question that will come in your mind. I
will suggest some tips at this point.
How to Check Error Message?
Run DBCC
CHECKDB command on the database,
it will write a reported error message in SQL server error log.
The reported error message will show you how many consistency
errors are found.
For example: You may get below error message in your error
log
2010-03-31 22:07:06.34 spid53 DBCC CHECKDB (mydb) executed by
MYDOMAINtheuser found 15 errors and repaired 0 errors. Elapsed
time: 0 hours 0 minutes 0 seconds. Internal database snapshot
has split point LSN = 00000026:0000089d:0001 and first LSN =
00000026:0000089c:0001. This is an informational message only.
No user action is required.
Note: You
can run DBCC CHECKDB command on the database any time no matter
your database is online or offline but you will get information
message only when DBCC CHECKDB will run on online
database.
How to Fix
Corruption: There are three
methods that you can try to repair corrupt table. The methods
are....
Check Hardware
Configuration: First of all check
your hardware configuration. If you are not a hardware geek
then connect with your system support team and fix the
issue.
Restore from Backup: If backup of corrupt table is available then restore
from updated backup.
Run DBCC CHECKDB with
repair_allow_data_loss: DBCC
CHECKDB is a free utility offered by Microsoft to repair &
recover SQL server database with minimum
data loss.
ALTER Database Employee_Details Set Single_User
GO
DBCC CHECKDB (Employee_Details, REPAIR_ALLOW_DATA_LOSS) With
ALL_ERRORMSGS;
GO
ALTER Database Employee_Details set multi_user
GO
Date Published: Feb 28, 2012 - 4:33 am
Are you getting SQL server error 5120, when
you try to attach some database files to Microsoft SQL
server? This may happen because you have
selected a file that is in use by other SQL server instance or
selected a wrong file for the attachment. To fix this, firstly
you have to check the location and status of SQL server files
that you want to attach.
The default location of data & log files are:
C:Program-filesMSSQLDataDatabase-Name_Data1.mdf
C:Program-filesMSSQLDataDatabase-Name_Log1.ldf
Note: Your
data & log files may have different location. You can
change it according to your need.
The error message that you may got is look like:
Unable to open the physical file
"C:Program-filesMSSQLDataDatabase-Name_Data1.mdf". Operating
system error 5: "5(Access is denied.)". (Microsoft SQL Server,
Error: 5120)
Possible Cause: As I have mentioned, this error message occurs due to
many reasons but it may also occurs when you are not allowed to
access the file directories. For the security purpose, database
administrator does not allowed you to access the file
directories. To access the file, you have to login as
administrator or get permission to access the database
files.
Resolution:
As we know that solution is not rigid for sql
database recovery. It may change according to the scenarios
or causes. Here, we will discuss two scenarios and its possible
solutions.
Solution 1:
If you have found access permission problem with the database
files then login as a administrator and fix
the problem.
Solution 2:
If you have found data file is present in C drive & log
file is present in E drive then change the location of data or
log and placed data and log files in a same drive. Now attach
the database and fix it.
Point to Ponder: Generally, solution 1 is enough to solve Microsoft
SQL error message 5129 because most of the database
administrator (owner) does not allow every administrator to
access the database files.
Date Published: Feb 12, 2012 - 10:17 pm
MS SQL Server 2000 is widely used all
over the world as the data storage component of several large
websites. It is a cross-platform application that supports
various advanced and user-friendly features, such as Microsoft
search service, federated servers, indexed views, etc. It can
help you achieve the desired performance levels required for
running large web applications. However, an SQL database may
occasionally become corrupt. The potential reasons responsible
for this corruption are virus infection, hardware errors,
abnormal system shutdown, etc. As a consequence, all valuable
objects in the database become inaccessible. To overcome this
problem, you need to go for SQL
recovery through a
reliable third-party utility.
Suppose, you use MS SQL Server
2000. While trying to access one of your databases, you may
receive the following error message on your screen:
“96/11/18
10:48:32.60 kernel udopen: Operating System Error 32 (The
process cannot access the file because it is being used by
another process.) during the creation/opening of physical
device,
C:DATASQLMSDB.DAT (or
C:DATASQLMSDB.MDF)”
Cause:
The above error occurs because you are trying to access a
database that is marked as 'suspect'. There could be a number
of reasons responsible for this, such as database corruption,
missing device driver, database being moved to another
location, etc.
This would render your SQL database
inaccessible and lead to severe data loss. At this stage, you may
use an updated backup to restore the database. However, if the
backup is unavailable, you should follow the below mentioned
resolution steps.
Resolution:
You can try to resolve the issue by following any of the given
methods:
-
Make sure that your system has
all the necessary device driver files.
-
If your SQL database is
corrupt, you need to follow the given procedure.
-
First, drop and recreate all
indexes in your database.
-
Create a new database table
and copy all records from the original table to this newly
created table.
-
Now, update the
statistics.
-
Run the following
command:
'DBCC UPDATEUSAGE'.
If the problem still persists,
you should take help from a competent SQL server recovery tool.
These third-party software are proficient in repairing corrupt
SQL databases to recover valuable objects, including tables,
views, indexes, constraints, triggers, stored procedures, etc.
They allow you to take a sneak peek at the database objects
prior to recovery.
Date Published: Jan 25, 2012 - 12:10 am
SQL server database mainly contains two
files, one is data file & another is log file. Data file
contains the information about data while log file contains the
information about transactions in the database. In simple
recovery model, log files are managed automatically but in case
of bulk-logged & full recovery model database
administrators are responsible to manage the size transaction
log file. You can perform this by shrinking the transaction log
file.
Sometimes, SQL server database generates an error message 9002
when it found insufficient log space. This error message will
appear when SQL server database is online or in recovery mode.
If database is online and struggling with log space problem
then you can read the database but unable to do any update on
it. If log fills during recovery then SQL server marks database
in suspect mode.
|
|
Space Full
|
The log file
for database '%.*ls' is full. Back up the transaction log for
the database to free up some log space.
Work Around: As error message states, if the size of log file is
full then immediately take the backup of database and issue
some free space for the log file. Now the point comes in your
mind, how to perform this. To do this follow the below given
steps:
These are the possible user action required
to perform the SQL
server recovery. Detail description is given below:
Backup the transaction log:
If you are using simple recovery model then
backup of transaction log is not possible. Take the backup of
transaction log file, if you are using bulk-logged or full
recovery model.
Issue some disk space:
Regardless of recovery models, freeing the
disk space allow recovery system to enlarge the transaction log
file automatically.
Move the log file to a disk
drive: If you are unable to free
some disk space to the transaction log file then move the log
files to a disk drive with sufficient space.
Date Published: Dec 27, 2011 - 11:37 pm
Database Users or administrators can start Microsoft SQL server
database from the task bar. To start, go to the task bar, open sq
server service manager and then click on the start button.
Sometimes MS SQL server is not start through this method and give
some error message like
2011-11-20 10:15:39.87
server Microsoft SQL Server 2000 - 8.00.760 (Intel
X86)
Dec 17 2002
14:22:05
Copyright (c) 1988-2003
Microsoft Corporation
Desktop Engine on Windows
NT 5.1 (Build 2600: Service Pack 2)
Most possible reason for the above error message is “model is
corrupt”. To resolve this, you can create a new copy of tempdb.
This will fix the starting problem of SQL server database. If you
still face the same problem then first of all make the backup of
all MDF & LDF files.
How to Make Backup when Unable to Start SQL Server? As we have
discussed, you are unable to start sql server then take a backup
of data & log files by below steps:
- Set SQL server service manual by Windows control panel.
- Reboots the windows.
- Copy all the data and log file to the another computer or
any removable media.
Attention:
Don't try
any methods until you have backup.
Have Backup? If Yes then use another copy of sql server with
same version and level to restore model database using
model.mdf & model.ldf. After restore, detach model database
from new sql server and copy the data & log files to
replace problem server. It is little bit messy to
recover SQL server but not hard. In simple
words, we can say that you will have to perform three
steps:
Restore-->Detach-->Copy (data
& log files)
Doesn't Have Backup? If you don't have any backup of sql server
database then it is recommended you to install a new copy of MS
SQL server. When installation is complete the stop the service
and copy the Model file to replace problem server.
Summary: SQL server database starting problem can be resolved
by two method, one is restore-detach and another is new
installation. Restore-detach method is hard in comparison of
new installation method but it is effective.
Date Published: Nov 28, 2011 - 12:12 am
No matter how reliable your database seems to be, you always
have issues on the performance grounds. More interestingly, I
found out that many performance issues relate to page
corruption in SQL Server. It would be good to understand here
what exactly is meant by ‘BAD_PAGE_PROCESS’. It usually occurs
when the background suspect page logger stops running after
every five seconds because of a large number of suspect pages.
If you want to checkout suspect pages, run the following T-SQL
command:
“select * from msdb.dbo.suspect_pages”
I took the help of DBCC CHECKDB on a corrupt SQL database to
find out the actual issue and whether it is able to resolve it.
Ran the following command:
“DBCC CHECKDB () WITH ALL_ERRORMSGS, NO_INFOMSGS”
Got errors similar to this one:
“Table error: Allocation page (1:1002912) has invalid PFS_PAGE
page header values. Type is 0. Check type, alloc unit ID and
page ID on the page.”
The PFS pages can neither be deleted nor reconstructed as there
is no easy way to examine which pages are allocated or not.
Now, I tried to view the contents of the page by using the
‘DBCC PAGE’ command as follows:
“dbcc traceon(3604)
go
dbcc page(,1,1002854,0)”
After looking at the content of the page, I found that there
was some corruption in the next page pointers. This seemed to
be a bit weird as initially the next page pointer was like:
“m_nextPage = (1: 1002855)”
When I decided to look at the next page and ran:
“dbcc traceon(3604)
go
dbcc page('GBLDataWarehouse',1,1002855,0)
go”
It was now pointing to page 0:
“m_nextPage = (0:0)” & “m_prevPage = (0:0)”
Finally, used a recent backup to restore the database and got
it up and running once again. But again, it was wise to see
where the issue occurred.
Date Published: Nov 01, 2011 - 5:05 am
SQL Server transaction log file is used to store recent database
transactions. When you modify or alter any entity in SQL server
database then it will be result in a write action in the
transaction log file. Generally we do several activity on the SQL
server database like add, delete, rename, update, insert and many
more and this will also be the result of write action in the
transaction log file but a read action on the SQL server database
does not change the transaction log file.
Does recovery models affect transaction log?
- The answer is NO. Recovery models (simple, full &
bulk-logged) do not affect what has written into the
transaction log but it effects the time period of entries that
present in the transaction log, detail description is as
follows:
-
Simple Recovery Model: In this recovery model,
transaction log entries are keeping for the database
integrity not for the database recovery purpose. When we run
checkpoint operation on the transaction log files then all
the inactive entries are deleted and space is ready for
reuse. It is also the best way to manage the size of
transaction log file but you can prefer another way also to
manage size of transaction log file.
-
Full Recovery Model: In this recovery model, entries
are key for the both integrity as well as for database
recovery purpose. All the entries are remains present in the
transaction log file until a log backup does not perform on
the file. Sometimes it difficult to manage the size of
transaction log files through this recovery
model.
-
Bulk-logged Recovery Model: It is almost same as full
recovery model but in this recovery model bulk operations are
minimally logged.
How to Monitor Size of Transaction log file?
- You can monitor the size of transaction log file by DBCC
SQLPERF command. When will you run this command then it returns
information about amount of log space used currently and it
also indicates when transaction log is in need to truncate. Log
truncation frees the used disk space but does not reduce the
size of physical transaction log file. To reduce transaction
log file size, you will have to shrink the log file.
How to shrink transaction log file in full recovery
model?
- You can shrink the transaction log file manually by the
using of DBCC SHRINKFILE command. This command may be differ
for the different SQL server database.
Date Published: Oct 10, 2011 - 4:44 am
Last Tuesday, we have faced a scary situation when my friend's
hard drive has crashed and he has not maintain any backup for
the database then he has used data recovery services offered by
stellar data recovery and retrieve his database and log files.
After retrieving database and log files, he came to me and ask
how to
fix error 5173 and 824.
After retrieving database and log files from the crashed
server, he had tried to attach the SQL server database but got
error messages 5173 & 824 and unable to access his
database. He can't recover SQL database from backup because i
have mentioned above he has not maintain any backup.
How to Fix:
We have followed below steps to fix the errors.
-
We have created a database with same name and same SQL data
files (MDF & NDF).
-
Make the file size identical as original SQL server
database
-
Stop the SQL server database services.
-
Rename the old MDF to new one and copy the old MDF to new
MDF location
-
Delete the LDF files.
-
Start SQL server database services
-
Our database has gone in suspect mode.
-
Update the sysdatabases to update to Emergency mode. This
will not use LOG files in start up Sp_configure “allow
updates”, 1
go
Reconfigure with override
go
Update sysdatabases set status = 32768 where name =
“corruptDBName”
go
Sp_configure “allow updates”, 0
go
Reconfigure with override
go
-
Now restart SQL server database.
-
Our database is in emergency mode.
-
Run DBCC CHECKDB on our database with
repair_allow_data_loss, that will rebuild the log files and
full repair.
-
Again restart SQL server database and now our database is
online.
Date Published: Sep 20, 2011 - 11:46 pm
Microsoft SQL server has two types of database, one is system
database and another is user database. A system database is
used by the SQL server for its own maintenance and management
while a user database is used by the database administrator for
storing user data. In this article, we will discuss about to
“How to move SQL server user database within same instance”.
A database administrator can move data and log files of user
database to a new location by specifying the new location in a
filename clause of ALTER database statement. To move a SQL
server user database follow the below steps:
-
Set the database off-line through this command
ALTER DATABASE database_name SET OFFLINE;
-
Move the files to a designation location
Run this command for each move file.
ALTER
DATABASE database_name MODIFY FILE ( NAME = logical_name,
FILENAME = ' new_pathos_file_name' );
-
Now set the database online through this command
ALTER
DATABASE database_name SET ONLINE;
-
Verify the changes
SELECT name, physical_name AS CurrentLocation, state_desc
FROM
sys.master_files
WHERE
database_id = DB_ID(N'');
Note: The above method is
applied to moving database within the same instance of SQL
server database. To move database from one instance to another,
you can try backup and restore method.
Example: Suppose we have a
log file sqlserverdatabase and want to move in to a new
location.
Use master;
Go
SELECT name, physical_name AS CurrentLocation, state_desc
FROM sys.master_files
WHERE database_id = DB_ID(N'sqlserverdatabase')
AND
type_desc = N'LOG';
Go
ALTER DATABASE sqlserverdatabase SET OFFLINE;
GO
ALTER DATABASE sqlserverdatabase MODIFY FILE ( NAME =
sqlserverdatabase_log, FILENAME =
'C:NewLocsqlserverdatabase_Log.ldf');
Go
ALTER DATABASE sqlserverdatabase SET ONLINE;
GO
SELECT name, physical_name AS CurrentLocation, state_desc
FROM sys.master_files
WHERE database_id = DB_ID(N'sqlserverdatabase');
AND
type_desc = N'LOG';
Date Published: Aug 23, 2011 - 4:22 am
MS SQL server database offers a high performance backup and
restore facility to its database users for maintaining the backup
of SQL server database and restore in case of corruption. SQL
server database may be corrupt due to severely reasons like media
failure, user errors, power failure, metadata structure
corruption, virus attack and many more. High performance backup
and restore facility enables database administrator to handle all
above corruption issues in SQL server database. A well planed
backup and restore strategy helps database administrator to
protect their data in case of above mentioned failures. The point
comes to describe backup.
Backup: A copied data that can be used in restoring the
corrupted data is called backup.
How to make a backup of SQL server database?
: A database administration can take a backup of SQL server
database with the help of SQL server management studio. Below
image is the screen-shot to make a backup in SQL server
database.
Restore SQL server Database in case of
Corruption?: A database administrator can restore
corrupt SQL server database with the help of good backup but
he/she will be also able to restore corrupt SQL database without
any backup. In this article we will discuss about both two
methods for restoring corrupt SQL server database.
Restore with Good Backup: A database
administrator can use “backup & restore” method, if he has
maintained a good backup for his database. Two machines are
required in this method. One is source machine where corrupt
database reside and another is designation machine where
corrupted database will be restored.
Note: Make sure following point before restoring the database
- The designation machine has sufficient space to restore.
- Directory structure on designation machine is must to
exist.
- Don't have same file name on the designation machine.
Restore without Backup: A database
administrator is still able to restore corrupt SQL server data
files without any good backup. In this situation, you should
take help from any Microsoft gold certified SQL server recovery
software. Stellar Phoenix
SQL
recovery software is a Microsoft gold certified partner
that repairs corrupt SQL server data files and its objects. It
is the most recommended software by the database expert to
repair corrupt SQL server database.
Date Published: Aug 19, 2011 - 3:34 am
When you are trying to start the services of SQL server database
and found the database is unavailable. At this situation you are
unable to do any operation on the SQL server database like
insert, delete, rename, update, and many more or even unable to
open the SQL server database. You can open and see SQL server
error log to know the reasons for the problem. After knowing the
reason, you can take appropriate method to
recover sql server database. When you open the
error log got an error message. The error message is:
"
FCB::Open failed: Could not open file for file number . OS
error: 5(access denied)"
Possible Cause: There are tons of reasons for the
above problem but we will discuss here about hardware failure
problem and account access problem.
Hardware Failure Problem: Whenever you will get the
above error message. It is recommended you to check the hardware
component of your system first before try any other action. If
you found any faulty hardware component then replace it with new
one and fix the problem.
Account Access Problem: The account in which SQL
server is running does not has permission to access the folder
that contains data and log files.
Follow Steps to Fix: You can fix the above error message
by following the below steps:
- Click on the Start button of your system
- Go to the programs and select SQL server
- Click on the folder that contains one the database files
- Right click on the folder
- Select sharing and security
- Now, select security button
- Click on the Add button
- A text box will be appear
- Write qualified user-name of the service account in the
text box
- Check the allow column to ensure full control
- Repeat these all steps for all other database and log
folder.
- Shutdown the SQL server database
- Now, restart the SQL server database from configuration
manager.
Date Published: Jul 27, 2011 - 1:12 am
In this article, I have described about how to repair a corrupt
“MS SQL server 2005 (compact edition) database” with the help of
engine object repair methods.
MS SQL server 2005 compact edition database has several files and
all these files are divided into four kilobytes unit each, these
files are known as pages. SQL server compact edition database
stores a checksum for all pages. If a page is corrupted or
damaged then checksum of the page does not match with stored
checksum. There are so many reasons for the corruption in the
database file like Meta data structure corruption, virus attack,
sudden system download, hardware failure and many more. If you
have verified that there is a corruption in the database file
then you can repair sql server database file by the engine object
repair method.
You can verify corruption is the database file by calling
system.data.sqlserverce.sqlceengine command. If this command
returns a true value then there is no corruption in the database
file and if this command returns a false value then there may be
some corruption in the database file. The syntax for verifying
the corruption is given below:
Syntax for verify
if (false == engine.Verify()) {...}
If a database file has been corrupted then you can recover
database file by engine object repair methods. This method scans
and fixes the corrupt database file. Engine object repair method
provides two repair methods:
1)
repairoption.deletecorruptedrows
2) repairoption.recovercorruptedrows
Repairoption.Deletecorruptedrows: This method
discards all the corrupted pages and recovers the database files
but you may lose some data if corrupt database file contains the
database schema.
Syntax for this method
engine.Repair(null, RepairOption.DeleteCorruptedRows);
Pros: Guaranteed that recovered database is free from
logical corruption.
Cons: You may lose some data, if you will use this
method.
Repairoption.recovercorruptedrows: This method
tries to read more data from corrupted database files and recover
more data as can possible.
Syntax for this method
engine.Repair(null, RepairOption.RecoverCorruptedRows);
Pros: Recover more data in comparison with
repairoption.deletecorruptedrows.
Cons: Does not guarantee that recovered database is free
from logical corruption.
Date Published: Jun 22, 2011 - 12:28 am
The DBCC CHECKDB utility is used more often than not by almost all
SQL database users. This eminent utility makes use of an internal
database snapshot to obtain transactional consistency of the
database. It uses this information to check and repair SQL database
following a three stage process. In the first stage, it performs an
allocation check. Then it checks all the critical system tables for
consistency errors in the second stage. In the final stage, a
consistency check of the whole database is performed. Sometimes due
to severe corruption, the process cannot be completed. If the
CHECKDB utility fails to repair corruption, you should go for SQL
recovery through a reliable third-party software.
For instance, you use MS SQL Server 2000. While running CHECKDB on
one of your important database files, you notice that the process
terminates unexpectedly giving you the following error message:
“
Database 'DBNAME' consistency errors in sysobjects, sysindexes,
syscolumns, or systypes prevent further CHECKNAME
processing.”
Cause:
The CHECKDB utility encountered some errors in the second stage
that it cannot repair. So, it simply aborts the process before
reaching the third stage and throws the above specified error
message. The completion of the second stage is necessary for
executing the third stage.
This could have happened due to metadata corruption in the database
system tables. Corruption may make all the components in your
database inaccessible. You may use a backup to restore all the lost
or inaccessible data. If the backup is missing, you should follow
the below mentioned resolution steps to perform MDF file
recovery.
Resolution:
Try the following methods to resolve the problem-
Check the SQL Server error log and the Windows application and
system log to determine the cause of the problem. If hardware
failure caused the problem, run the hardware diagnostics tool.
Run DBCC CHECKDB with proper repair clause to fix corruption.
If the problem still persists, you should take help of a
SQL
database recovery software. These software are capable of
recovering the damaged SQL database components in their original
form restoring all their properties and relationships with other
components. They retrieve tables, views, queries, indexes, stored
procedures, keys, constraints etc. from the corrupt database.
Date Published: May 27, 2011 - 3:02 am
The data loss from the database is a very panic situation that
occurs without any warning message. It can corrupt or damage our
data stored on our hard drives or on any storage media. The
database may be corrupted due to hardware failure, application
failure, improper system shutdown, media read errors, software
failure, power failure, virus attack and many other reasons. In
such case you need to use an advanced database recovery software to
recover and repair corrupted database. In case of MDF file
corruption, you may face any of the given below error
messages:-
“Windows could not start
the SQL Server”
“MDF is not a primary database file”
“Server can’t find the requested database table”
“Database Can’t Be Accessed”
“The file *.mdf is missing and needs to restore”
“The execution of a full-text query failed”.
Solution: To
repair and restore corrupted .mdf file by any of the above error
message follow given below steps:
Fix Hardware Issue:
To fix the error message check your hardware setup if found any
problem with the hardware then repair or replace it by new one
and fix the problem.
Run DBCC CheckDB
Command: If the problem is not related to hardware then run dbcc
checkdb command without any clause and then run again dbcc
checkdb command with the proper repair clause.
Restore from Backup:
After running the dbcc checkdb command and you still getting an
error message then restore database from the latest and updated
backup. If you have no any backup then you should try an advanced
mdf recovery utility to repair and restore
corrupted .mdf file.
Date Published: Apr 12, 2011 - 4:07 am