I think I have a basic question here that many might have encountered. When I run a query in SQL Server it will load in memory all the data it needs for query execution (for
I don't think there is a way to force SQL Server to free memory . However you can limit memory usage.
sp_configure 'max server memory', reconfigure
MSDN