Message
Error: 824, Severity: 24, State: 2.
SQL Server detected a logical consistency-based I/O error: incorrect checksum (expected: 0xa0000006; actual: 0x40002141). It occurred during a read of page (1:2738679) in database ID 6 at offset 0x0000339ee000 in file ‘G:\SQLdb.mdf’.
Additional messages in the SQL Server error log or system event log may provide more detail. This is a severe 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.
Steps to resolve the above issue.
Step 1:
— Turnon Trace 3604 to view the DBCC page information
DBCC traceon(3604)
Step 2:
—
Get the objectid and indexid details using page number from the CHECKDB error message,
DBCC page ([PRODUCTION_database],1,2738679)
Metadata: ObjectId = 117575457
Metadata: IndexId = 13

Step 3:
— Get the object name and index details
select OBJECT_NAME(117575457)
select * from sys.indexes where object_id = 117575457
Step 4:
–Check the table for any consistancy errors
DBCC checktable (‘[dbo].[tablename]’)
— run the dbcc check to confirm the correpted index
DBCC checktable (‘[dbo].[tablename]’,13) — 13 is indexid
–Below message will confirm you that the index id 13 is the corrupted index
Msg 8928, Level 16, State 1, Line 1
Object ID 117575457, index ID 13, partition ID 72057598533304320, alloc unit ID 72057598582390784 (type In-row data): Page (1:2738679) could not be processed. See other errors for details.
Msg 8939, Level 16, State 98, Line 1
Step 5:
—- Now Drop and recreate the index to resolve this issue. After recreating the index run check db or table against the corrupted table or database
–Script to check the index size
SELECT
i.name AS IndexName,
SUM(s.used_page_count) * 8 AS IndexSizeKB
FROM sys.dm_db_partition_stats AS s
JOIN sys.indexes AS i
ON s.[object_id] = i.[object_id] AND s.index_id = i.index_id
WHERE s.[object_id] = 117575457
GROUP BY i.name
ORDER BY i.name