• System.OutofMemoryException is a .NET error message. Are you using a CLR procedure or function in your query? How are you running the query?