sql - what does DBCC DBREINDEX('?', ' ', 80) do? -


what following statement do? reindex tables named '?' fill factor of 80% ?

exec sp_msforeachtable @command1="print '?' dbcc dbreindex ('?', ' ', 80)" 

it did improve query time 23 seconds instantly i'd understand why.

not quite - when use sp_msforeachtable, question mark placeholder the table name (as loops through each table in turn).

in reply second question comments, yes - according documentation on dbcc dbreindex second argument:

if index_name specified, table_name must specified. if index_name not specified or " ", indexes table rebuilt.


Comments

Popular posts from this blog

ios - UICollectionView Self Sizing Cells with Auto Layout -

node.js - ldapjs - write after end error -

DOM Manipulation in Wordpress (and elsewhere) using php -