Click here to Skip to main content
15,918,193 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Hello Friends

I have a query related sql.

I found an error which is shown below when I m executing query.

Attempt to fetch logical page(1:3482) in database 'XYZ' belongs to object '451636802' not to object Table name 'ABC'


Pls reply in favour of this error. and provide solution for this.

Thanks in advance.................
Posted

Google[^] suggests to run CHECKDB.
 
Share this answer
 
v2
 DBCC CHECKDB (<databasename>) WITH NO_INFOMSGS, ALL_ERRORMSGS
</databasename>


That piece of SQL will / should highlight up the table(s) that are giving you the issues.

This MSDN article[^] gives you a detailed use of the DBCC CheckDB and any related commands that you can use
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900