Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

can database design or DML be cause of data corruption (other than obvious possibility of Disk issues)?

Posted on 2014-09-18
4
Medium Priority
?
174 Views
Last Modified: 2014-10-07
can a db design issue cause? is it possible?

one of the reason I ask is every 6-8 months, one database seems to be corrupted.. I can't say that for any of the other databases on that sql instance. (the one that gets corrupted is active (meaning being used), the others are more for archives though and occasional querying).
0
Comment
Question by:25112
  • 2
  • 2
4 Comments
 
LVL 5

Author Comment

by:25112
ID: 40330295
article in sqlmag says
"In virtually all cases of SQL Server database corruption (over 99.99% by most accounts), the root cause of corruption is due to problems at the IO subsystem level"

what are the other 0.01% causes?

a)can a poorly designed database ever possible to cause data corruption? (that checkdb reports)?

b)can stored procs, functions (DML) Deletes Inserts cause (is it possible) data corruption?

c)is the answer to the above the same for physical disk as well as virtual?
0
 
LVL 52

Expert Comment

by:Vitor Montalvão
ID: 40330428
What you mean with 'data corruption'? Is data lost? Or can't access to data?
DBCC CHECKDB should be run regularly over all databases to check the data integrity.
A good backup policy should be set in case of the need for a recover to avoid big data losses.
0
 
LVL 5

Author Comment

by:25112
ID: 40330724
'data corruption'- yes, referring to 'data integrity' errors that CHECKDB gives.

question is other than the 99% rootcause of disk issues, can DML ever cause the data integrity, in the first place.
0
 
LVL 52

Accepted Solution

by:
Vitor Montalvão earned 2000 total points
ID: 40332043
I don't think DBCC CHECKDB command will track bad data models. What it usually do is to check if all referential integrities rules are 100% OK (broken FK's or other Constraints) and physical corruptions (access to data and BLOB files).

If you have a database without PK, FK and any kind of indexes, DBCC CHECKDB won't throw an error because of that.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article we have discussed the manual scenarios to recover data from Windows 10 through some backup and recovery tools which are offered by it.
The article will include the best Data Recovery Tools along with their Features, Capabilities, and their Download Links. Hope you’ll enjoy it and will choose the one as required by you.
This video Micro Tutorial explains how to clone a hard drive using a commercial software product for Windows systems called Casper from Future Systems Solutions (FSS). Cloning makes an exact, complete copy of one hard disk drive (HDD) onto another d…
Loops Section Overview

824 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question