2010年6月27日 星期日

轉貼 SQL Server Hints

MSSQLTIPS
Using Hints To Test Indexes in SQL Server

強迫使用某一index查看查詢效能變化, 主要是觀察execution plan 中, query cost是否有顯著的下降

使用方式:

SELECT NationalIDNumber
FROM HumanResources.Employee
WITH (INDEX (PK_Employee_EmployeeID))
WHERE Title = 'Stocker'

沒有留言:

張貼留言

離線安裝SSMS 22 launched extracted application exiting with result code 0x138b

SSMS 22 安裝器下載頁面 https://learn.microsoft.com/zh-tw/ssms/install/install https://aka.ms/ssms/22/release/vs_SSMS.exe 將安裝檔下載到本機,檔案好大2.5G  https:...