SQL Server 2000 中与 INCLUDE 等效的非聚集索引
我创建了一个非聚集索引(使用 MSSQLSMS 中的执行计划工具),它大大加快了关键的、耗时的查询的速度。我的测试机器使用 SQL Express 2008,但我在生产服务器上仅限于 SQL Server 2000。
索引在 INCLUDE
语句中包含一些非键列:
CREATE NONCLUSTERED INDEX idxTotalFundsUnderManagementQuery_TotalPv
ON PortfolioMovements (PortfolioMovementType, AtDate)
INCLUDE (PortfolioID, SecurityGuid, Units)
SQL Server 2000 不支持 INCLUDE
。有没有办法在索引中包含非键列?
I created a non-clustered index (using the execution plan tools in MSSQLSMS) that greatly speeds up a critical, time-consuming query. My test machine uses SQL Express 2008, but I'm limited to SQL Server 2000 on the production server.
The index includes some non-key columns in an INCLUDE
statement:
CREATE NONCLUSTERED INDEX idxTotalFundsUnderManagementQuery_TotalPv
ON PortfolioMovements (PortfolioMovementType, AtDate)
INCLUDE (PortfolioID, SecurityGuid, Units)
INCLUDE
isn't supported on SQL Server 2000. Is there a way to include non-key columns in the index?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
否: http://msdn.microsoft.com/ en-us/library/aa258260(v=sql.80).aspx
据我所知,这是 2005 年 SS 中引入的一项性能功能。
No: http://msdn.microsoft.com/en-us/library/aa258260(v=sql.80).aspx
It's a performance feature that was introduced in SS 2005 AFAIK.