There is no way to increase the sort size. Does your query have a DISTINCT, GROUP BY or ORDER BY clause? You will need to reduce the number of columns in a select list and/or GROUP BY or ORDER BY clause.
If you have a UNION, SQL sorts the entire row. You can stop the sort by adding ALL to the UNION clause. Of course, SQL will no longer eliminate duplicates.
Select * from table1
UNION ALL
Select * from table2 Terry L. Broadbent
FAQ183-874 contains tips for posting questions in these forums.
NOTE: Reference to the FAQ is not directed at any individual.