How to Reindex a SQL Database using MS SQL Server

preview_player
Показать описание
How to Reindex a SQL Database using MS SQL Server

Рекомендации по теме
Комментарии
Автор

Ton of thanks. This was really really halpfull

skullduggerygillen
Автор

No one else shows us how to do it for all the tables in the db. thx!!

kstevenson
Автор

Hi. Nice video! I'm having some thoughts regarding when is a good time to shrink and reindex database that is in use. Obviously, best time is when DB is not in peak hours. But is it safe to do it on production DB or we need to take it offline? It's not large DB but it has constant transactions written on it...

bepobonacic
Автор

Hi there. I have had an Alter Index Rebuild running for 6 hours. The database is online. The status of the Alter Index process is “suspended” with a wait type of LCK_M_SCH_M and it appears there are 100 or so other processes being blocked by the SPID of the Alter Index Rebuild. Is there a safe way to abort the Rebuild or should I wait till it finishes? I cant tell if its even doing anything. BTW the database is 30-40GB.

Any advice/tips? I obviously know now I should have taken the db offline first.

EmersonArtwork
Автор

Well, it seems that DBCC DBREINDEX is deprecated. We should use the ALTER INDEX REBUILD statement instead.

kstevenson
Автор

When we suggest for rebuild index or reorganise index

rameshmanchala
visit shbcf.ru