System.Data.SqlClient.SqlException: There is insufficient system memory in resource pool 'internal' to run this query. A severe error occurred on the current command. The results, if any, should be discarded. at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction) at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose) at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady) at System.Data.SqlClient.SqlDataReader.TryConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, SqlDataReader ds) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean asyncWrite) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteScalar() at Cb_functions.ExecuteScalar(String sQueryString, String sConnectionString, Dictionary`2 dictSqlParams) in C:\inetpub\wwwroot\App_Code\CB_Functions.aspx.vb:line 5710 --- End of inner exception stack trace --- at Cb_functions.ExecuteScalar(String sQueryString, String sConnectionString, Dictionary`2 dictSqlParams) in C:\inetpub\wwwroot\App_Code\CB_Functions.aspx.vb:line 5712 at Cb_functions.AdHocSessionCheck() in C:\inetpub\wwwroot\App_Code\CB_Functions.aspx.vb:line 6566 at Advancedwebpagefunctions.Main() in C:\inetpub\wwwroot\App_Code\AdvancedWebPageFunctions.aspx.vb:line 2710 at ASP.advancedwebpage_aspx.Page_Load(Object sender, EventArgs e) in C:\inetpub\wwwroot\AdvancedWebPage.aspx:line 15 -->