Loading ...

Insufficient System memory to run this query

Who is online?  0 guests and 0 members
home  »  forums   »  asp.net topics   »  data access   » Insufficient System memory to run this query

Insufficient System memory to run this query

Posts under the topic: Insufficient System memory to run this query

Posted: 11/18/2011

Lurker 5  points  Lurker
  • Joined on: 11/18/2011
  • Posts: 1

When I execute the below chunk of code, It reads and appends around 78000 records and gives the error 'Insufficient system memory to run this query'. This occurs only in the Production environment. It doesnot occur in any local or test environment. 

SqlDatareader dr;

StringBuilder appXML = New StringBuilder();

while(dr.Read())
{
appXML.Append(dr.GetSqlXml(1).Value);
}


Page 1 of 1 (1 items)