Difference between revisions of "Template:SQWareProduction sqwmsq RebuildIndexDatabase.ksh presentation"

From Wiki_dbSQWare
Jump to: navigation, search
m (Updated by Expdbtools)
 
m (Updated by BatchUser)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<br>Generate reorganization commands for the database
+
<br>Rebuild indexes for all databases
<br>version = 2000 -> dbcc dbreindex (N'[$lvsqw_Owner].[$lvsqw_TableName]','',90)
+
<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)
+
<br>version >= 2005 -> alter index all on [$lvsqw_Owner].[$lvsqw_TableName] Rebuild with (online = off)

Latest revision as of 16:12, 7 April 2024


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)