PRB: More Than Nine Functions in Left Join Causes Memory ErrorLast reviewed: January 2, 1998Article ID: Q178494 |
The information in this article applies to:
SYMPTOMSIf there are more than nine functions in your left join SQL statement the following error occurs:
There is not enough memory to complete this operation. RESOLUTIONCreate separate User Defined Functions (UDFs) to eliminate the large number of functions in left join. Create a program called Ztest.prg that contains the functions called by the UDF shown below:
FUNCTION testfun1 RETURN STR(a.Row1,4)+STR(a.Row2,4)+STR(a.Row3,4)+STR(a.Row4,4) ; +STR(a.Row5,4) FUNCTION testfun2 RETURN STR(b.Row1,4)+STR(b.Row2,4)+STR(b.Row3,4)+STR(b.Row4,4) ; +STR(b.Row5,4)Use the following code to execute the new SQL SELECT statement that calls the UDF code:
SET PROCEDURE TO Ztest.prg SELECT * FROM test1 a LEFT JOIN test2 b ON testfun1() = testfun2() STATUSMicrosoft is researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.
MORE INFORMATION
Steps to Reproduce Behavior
Keywords : FxprgSql vfoxwin Version : WINDOWS:5.0,5.0a Platform : WINDOWS Issue type : kbprb |
================================================================================
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |