Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error 1814: Why only in my EXE but not in development?
Message
From
13/06/2005 17:13:00
 
 
To
13/06/2005 14:37:57
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP1
Miscellaneous
Thread ID:
01022868
Message ID:
01022928
Views:
11
>Any ideas why the second SQL statement here works fine in development, but fails on error 1814 in my EXE?
>
SELECT STR(PROCESSID,6,0)+STR(usernumber,6,0) FROM accessfile INTO CURSOR Temp
>
>SELECT appfile.PROCESSID, userfile.usernumber 		;
>	FROM appfile,userfile 				;
>	WHERE NOT STR(PROCESSID,6,0)+STR(usernumber,6,0) IN 	;
>	(SELECT * FROM Temp) 				;
>	INTO CURSOR NewRecs READWRITE
>
>(I'm trying to find all combinations of ProcessID and UserNumber, both N(6), not already found in AccessFile.)
>
>Any suggested alternatives?
>
>Thanks

1. Check if SET ANSI ON fix it

2. TRY
SELECT appfile.PROCESSID, userfile.usernumber 		;
	FROM appfile,userfile 				;
	WHERE NOT BINTOC(PROCESSID)+BINTOC(usernumber) IN 	;
	(SELECT BINTOC(PROCESSID)+BINTOC(usernumber) FROM accessfile) 				;
	INTO CURSOR NewRecs READWRITE
2.TRY ( but it can to be slower ):
SELECT appfile.PROCESSID, userfile.usernumber 		;
   FROM appfile,userfile 				;
   LEFT JOIN accessfile acc ON ACC.PROCESSID=appfile.PROCESSID AND ACC.usernumber = userfile.usernumber;
   WHERE ACC.PROCESSID IS NULL;
   INTO CURSOR NewRecs READWRITE
Previous
Reply
Map
View

Click here to load this message in the networking platform