RSS feed [root] /weblog /database /performance




login:

password:

title search:




 


Thu Jun 30 16:34:29 GMT 2011

parameter sniffing



When the query plan is compiled on first run of the procedure after a SQL Server restart, the query is optimised for those initial variables in that initial call.

There’s ways to write the procedure to have a more representative query plan chosen on initial compile each time:

http://blogs.msdn.com[..]ryoptteam/archive/2006/03/31/565991.aspx

This is what is known as parameter sniffing.


(google search) (amazon search)
second
download zip of files only