Difference between revisions of "Template:SQWareProduction sqwmsq RebuildIndexDatabase.ksh presentation"
m (Updated by BatchUser) (Tag: Blanking) |
m (Updated by BatchUser) |
||
Line 1: | Line 1: | ||
− | + | <br>Rebuild indexes for all databases | |
+ | <br>version = 2000 -> Dbcc dbreindex (N'[$lvsqw_Owner].[$lvsqw_TableName]','',90) | ||
+ | <br>version >= 2005 -> alter index all on [$lvsqw_Owner].[$lvsqw_TableName] Rebuild with (online = off) |
Latest revision as of 16:08, 23 February 2025
Rebuild indexes for all databases
version = 2000 -> Dbcc dbreindex (N'[$lvsqw_Owner].[$lvsqw_TableName]',,90)
version >= 2005 -> alter index all on [$lvsqw_Owner].[$lvsqw_TableName] Rebuild with (online = off)