开发者

SQL Server Index rebuilding vs reorganizing

I am using Michelle Ulfords script to maintain indexes. The script is great, but as far I can see will only reorganize (not rebuild) any index on a table that contains a LOB (text,ntext etc.)

Given that SQL server won't allow you to in开发者_JAVA百科clude LOB fields in an index, is it impossible (or not recommended) to rebuild indexes on tables that contain them? And why?


SQL Server does allow indexes to contain LOBS. Otherwise it would be impossible to have a clustered index on a table with LOBS, which is clearly not the case. And is also possible to add LOBs to non-clustered indexes, as included columns.

As for your question: it is possible to rebuild indexes with LOBs but only as an offline operation.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜