1. 数据库option中的自动更新统计与自动创建统计都为True时候分别表示什么意思?都为True时是否数据库维护中建立更新统计信息的任务呢?
2.SQL Server的执行是从右下方向左上方阅读吗?另外Estimated substree cost、Memeory Grant是什么计量单位,是毫秒?

解决方案 »

  1.   

    You could find answer from Bol or msdn
      

  2.   

    1、自动更新和自动创建统计信息,这个让索引在插入或更新数据的时候会自动更新该索引的统计信息。T-SQL查询的时候依据统计信息来生成执行计划。
    2、SQL语句从右往左读,这个你需要去看一本书《inside of SQLSERVER 2005 T-SQL》
      

  3.   

    1. 数据库option中的自动更新统计与自动创建统计都为True时候分别表示什么意思?
    都为True时是否数据库维护中建立更新统计信息的任务呢?
    -->  建立索引时, 自动为索引中的第一列创建统计.
         查询时自动在查询条件列上创建统计.2.SQL Server的执行是从右下方向左上方阅读吗?另外Estimated substree cost、Memeory Grant是什么计量单位,是毫秒?
    --> 没见Estimated substree cost/Memeory Grant, 只有TotalSubtreeCost,代表执行成本,越低越好.
      

  4.   

    Estimated Subtree Cost - This is the total of this operation's cost as well as all other operations that preceded it in the query to this pointHow to read SQL Server graphical query execution plans
      

  5.   

    Memeory Grant:“Provide memory grant estimate as well as actual runtime memory grant information. Serial required/desired memory attributes are estimated during query compile time for serial execution. The rest of attributes provide estimates and counters for query execution time considering actual degree of parallelism.”