Memory errors when using SQL statements

SQL statements that return a large amount of data have the potential to cause memory problems. If while using a statement in a grid or chart object, you receive a memory error, set a maximum number of rows on the SQL statement. See To set limits on the number of records retrieved for more information.