Sql-server – Does restarting the SQL Services (on the machine) clear the server cache (for things like query plans and statistics)

cacheplan-cachesql serversql-server-2008-r2statistics

Does the server cache get wiped (similarly to when you restart the SQL instance / machine) when you only restart the SQL Services themselves?

Best Answer

Yes it does. Since SQL Server is in charge of maintaining those caches, when you shut down SQL server's services, it releases the memory back to the operating system.