PRB: More Than Nine Functions in Left Join Causes Memory Error (178494)
The information in this article applies to:
- Microsoft Visual FoxPro for Windows 5.0
- Microsoft Visual FoxPro for Windows 5.0a
This article was previously published under Q178494 SYMPTOMS
If 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.
RESOLUTION
Create 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()
STATUS
Microsoft is researching this problem and will post new information here in
the Microsoft Knowledge Base as it becomes available.
Modification Type: | Major | Last Reviewed: | 12/11/1999 |
---|
Keywords: | kbprb KB178494 kbAudDeveloper |
---|
|