Hi experts,
I have 2 identically-indexed tables that are in separate SQL Server 2000 databases residing on the same server.
A manager has built a complex view.....
When we run the view in Enterprise Manager (by right-clicking -->show all) in DB1, it displays the requested rows.
When we run the view in DB2, we get the timeout error.
- (Almost the same numbers of rows in both tables.... approx 11 million in each)
- Each table has the same indexes
My questions:
1) How can I know if the table in DB2 has a corrupted index?
2) When I run the DBCC SHOWCONTIG command, I dont really know how to interpret the info... % Logical Scan Fragmentation, Average Page Density etc What should these figures be if all is OK?
Please note: I'm not asking how to set the timeout value, etc.
Maybe I should go ahead and run the INDEXDEFRAG or DBREINDEX, but I would appreciate some insight before I start that lengthy process.
Thanks ! John
I have 2 identically-indexed tables that are in separate SQL Server 2000 databases residing on the same server.
A manager has built a complex view.....
When we run the view in Enterprise Manager (by right-clicking -->show all) in DB1, it displays the requested rows.
When we run the view in DB2, we get the timeout error.
- (Almost the same numbers of rows in both tables.... approx 11 million in each)
- Each table has the same indexes
My questions:
1) How can I know if the table in DB2 has a corrupted index?
2) When I run the DBCC SHOWCONTIG command, I dont really know how to interpret the info... % Logical Scan Fragmentation, Average Page Density etc What should these figures be if all is OK?
Please note: I'm not asking how to set the timeout value, etc.
Maybe I should go ahead and run the INDEXDEFRAG or DBREINDEX, but I would appreciate some insight before I start that lengthy process.
Thanks ! John