Wednesday 9 October 2013

04. The SalesOrderDetail table is often queried. The queries are based on the SalesOrderDetailID and SalesOrderID attributes. The execution of the queries takes a long time. Optimize the execution of the queries. In addition, check the performance of the query before and after optimizing the execution of the queries.

create nonclustered Index
 Idx_salesOrderID_salesOrderDetailID
 on sales.salesorderdetail(salesorderid,salesorderdetailid)

No comments:

Post a Comment