Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2008 Forums
 SQL Server Administration (2008)
 data corruption

Author  Topic 

sarahmfr
Posting Yak Master

214 Posts

Posted - 2012-02-14 : 13:44:54
I have a table with primary key having an index
I rebuild the index while the system was on line before
I am inserting a record I can see the record but on displaying top 10 desc I can not see it.
The table also is linked to other tables
shall I shut down the system and rebuild all the indexes for all the tables or how to fix that.
How to find where the corruption is thanks


sarah

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2012-02-14 : 13:49:18
This is not corruption. This is a coding problem.

Rebuilding indexes will not solve this nor will shutting down the system. You need to fix your code.

Show us your query.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

sarahmfr
Posting Yak Master

214 Posts

Posted - 2012-02-14 : 17:29:58
This is not coding error because after rebuilding the index i can see the last record
my query is
select top 1 * from xxxx
order by messageid desc
thanks

sarah
Go to Top of Page
   

- Advertisement -