SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


How to Repair Damaged SQL Server 2012 Database?


How to Repair Damaged SQL Server 2012 Database?

Author
Message
tapanikobler
tapanikobler
SSC Journeyman
SSC Journeyman (85 reputation)SSC Journeyman (85 reputation)SSC Journeyman (85 reputation)SSC Journeyman (85 reputation)SSC Journeyman (85 reputation)SSC Journeyman (85 reputation)SSC Journeyman (85 reputation)SSC Journeyman (85 reputation)

Group: General Forum Members
Points: 85 Visits: 1
Something happened with my sql database.

Due to an unexpected reason sql server database has become corrupted. But don't know how to do fix this.

Please someone provide me any solution.
pietlinden
pietlinden
SSC Guru
SSC Guru (53K reputation)SSC Guru (53K reputation)SSC Guru (53K reputation)SSC Guru (53K reputation)SSC Guru (53K reputation)SSC Guru (53K reputation)SSC Guru (53K reputation)SSC Guru (53K reputation)

Group: General Forum Members
Points: 53387 Visits: 16991
not near enough information to help. How old is your latest backup? Do you have your transaction logs somewhere? what recovery model are you using?
e4d4
e4d4
SSCarpal Tunnel
SSCarpal Tunnel (4.9K reputation)SSCarpal Tunnel (4.9K reputation)SSCarpal Tunnel (4.9K reputation)SSCarpal Tunnel (4.9K reputation)SSCarpal Tunnel (4.9K reputation)SSCarpal Tunnel (4.9K reputation)SSCarpal Tunnel (4.9K reputation)SSCarpal Tunnel (4.9K reputation)

Group: General Forum Members
Points: 4939 Visits: 2991
What is exact error message in error log?
Grant Fritchey
Grant Fritchey
SSC Guru
SSC Guru (357K reputation)SSC Guru (357K reputation)SSC Guru (357K reputation)SSC Guru (357K reputation)SSC Guru (357K reputation)SSC Guru (357K reputation)SSC Guru (357K reputation)SSC Guru (357K reputation)

Group: General Forum Members
Points: 357309 Visits: 34402
Run DBCC CHECKDB.

The output will tell you what is corrupted. If you're lucky, it's a nonclustered index. You can drop it and recreate it and walk away a winner. If it's any other type of data storage, you'll need to go to your last good backup.

----------------------------------------------------
The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood...
Theodore Roosevelt

The Scary DBA
Author of: SQL Server 2017 Query Performance Tuning, 5th Edition and SQL Server Execution Plans, 3rd Edition
Product Evangelist for Red Gate Software
Eirikur Eiriksson
Eirikur Eiriksson
SSC Guru
SSC Guru (161K reputation)SSC Guru (161K reputation)SSC Guru (161K reputation)SSC Guru (161K reputation)SSC Guru (161K reputation)SSC Guru (161K reputation)SSC Guru (161K reputation)SSC Guru (161K reputation)

Group: General Forum Members
Points: 161621 Visits: 23609
Further on Grant's, post the full and unedited output of "DBCC CHECKDB(‘DatabaseName’) WITH NO_INFOMSGS, ALL_ERRORMSGS"
Cool
prettsons
prettsons
SSCertifiable
SSCertifiable (6.8K reputation)SSCertifiable (6.8K reputation)SSCertifiable (6.8K reputation)SSCertifiable (6.8K reputation)SSCertifiable (6.8K reputation)SSCertifiable (6.8K reputation)SSCertifiable (6.8K reputation)SSCertifiable (6.8K reputation)

Group: General Forum Members
Points: 6768 Visits: 1586
Please answer the above question!!

SQL Database Recovery Expert :-)
ewoudpauwels
ewoudpauwels
SSC-Enthusiastic
SSC-Enthusiastic (121 reputation)SSC-Enthusiastic (121 reputation)SSC-Enthusiastic (121 reputation)SSC-Enthusiastic (121 reputation)SSC-Enthusiastic (121 reputation)SSC-Enthusiastic (121 reputation)SSC-Enthusiastic (121 reputation)SSC-Enthusiastic (121 reputation)

Group: General Forum Members
Points: 121 Visits: 0
tapanikobler (2/21/2015)
Something happened with my sql database.

Due to an unexpected reason sql server database has become corrupted. But don't know how to do fix this.

Please someone provide me any solution.


As a proper variant, visit: http://www.filerepairforum.com/forum/microsoft/microsoft-aa/sql-server/1413-sql-database-in-suspect-mode

OR

One more solution is using third-party tools, SQL Server Repair Toolbox is one of the best solution.

I can recommend it you but check it by running its demo version- http://www.sqlserver.repairtoolbox.com/
Eirikur Eiriksson
Eirikur Eiriksson
SSC Guru
SSC Guru (161K reputation)SSC Guru (161K reputation)SSC Guru (161K reputation)SSC Guru (161K reputation)SSC Guru (161K reputation)SSC Guru (161K reputation)SSC Guru (161K reputation)SSC Guru (161K reputation)

Group: General Forum Members
Points: 161621 Visits: 23609
rodickwillision (8/31/2016)
To repair corrupt or damaged SQL server database, download an excellent tool Kernel for SQL Database Recovery Tool. The tool also recovers all tables, stored procedure, functions, views, rules, triggers and associated Primary Key, Unique keys and etc. It supports all versions of MS SQL server like 2014, 2012, 2008 R2, 2008, 2005 & 2000 and all updated Windows OS versions. Visit here - http://www.sql.mdfrepair.net


It is very irresponsible to suggest any tools for a job when the actual problem is unknown, strongly advise anyone reading this thread to approach such quick fix solutions as suggested here with the utter most caution.
Cool
Lincoln Burrows
Lincoln Burrows
SSCoach
SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)

Group: General Forum Members
Points: 16921 Visits: 2181
Corruption can occur at any time and due to number of reasons. Corruption in storage media, hardware failure, Defected Disk drivers, header corruption are some of the reasons of getting corruption in SQL Server Database. Here are step by step procedure for repairing your MDF File in SQL Server Database :
https://dzone.com/articles/how-to-repair-mdf-file-in-sql-server-database
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum








































































































































































SQLServerCentral


Search