An error occurred while executing batch. Error message is: Exception of type ‘System.OutOfMemoryException’ was thrown.
Symptoms When you use SSMS to run an SQL query that returns a large amount of data, you receive an error message that resembles the following: An error occurred while executing batch. Error message is: Exception of type ‘System.OutOfMemoryException’ was thrown Cause This issue occurs because SSMS has insufficient memory to allocate for large results.... » read more