在 MMSE Express 中创建脚本 - 关于脚本某些部分的问题
当我使用 Management Studio 创建脚本时,它包括以下部分:
WITH
(
PAD_INDEX = OFF,
STATISTICS_NORECOMPUTE = OFF,
IGNORE_DUP_KEY = OFF,
ALLOW_ROW_LOCKS = ON,
ALLOW_PAGE_LOCKS = ON,
FILLFACTOR = 70
)
这些选项是什么以及它们是必需的吗?
谢谢 :)
When I create a script with the Management Studio, it includes this part:
WITH
(
PAD_INDEX = OFF,
STATISTICS_NORECOMPUTE = OFF,
IGNORE_DUP_KEY = OFF,
ALLOW_ROW_LOCKS = ON,
ALLOW_PAGE_LOCKS = ON,
FILLFACTOR = 70
)
What are those options and are they required?
Thanks :)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
它们都不是必需的。
您可以在联机丛书中阅读所有选项: http://msdn.microsoft .com/en-us/library/ms188783.aspx
None of them are required.
You can read about all the options at Books Online: http://msdn.microsoft.com/en-us/library/ms188783.aspx
所有这些选项都是服务器或数据库默认设置的设置,因此您实际上不需要指定它们。
我唯一这样做的时候是当我专门尝试微调某些东西时。
例如,如果我知道我将在聚集索引中散布/编辑/删除大量值(表页可能会重新排列或损坏),那么我会指定一个低填充因子。如果它位于我不引入旧数据的仓库中,那么我不需要在索引中留下大量空间 - 我可能会认为接近 100%,只要我觉得舒服。
All these options are settings that the Server or the Database has defaults set for, so you really don't need to specify them.
The only time I do is if I am specifically trying to fine tune something.
For example, if I know that I am going to have a lot of values interspersed/edited/deleted for a clustered index (for which table pages might get rearranged or broken) then I specify a low fill factor. If it is in a warehouse where I'm not bringing in old data then I don't need a lot of space left over in my index - I may take that as close to 100% as I feel comfortable.