Sometimes, due to the large size of the script and data, we encounter this type of error. The server needs enough memory to execute and provide the result. We can simply increase the memory size for each request.
You just need to go to the properties of the sql server> the "Memory" tab (left)> Now set the maximum memory limit you want to add.
In addition, there is an option at the top, “Results for text,” which consume less memory compared to the “Results for grid” option, we can also go to the result in text for less memory.
Ankita shrivastava Oct 06 '16 at 6:19 2016-10-06 06:19
source share