Ok, I get my data all the time from FoxPro tables. I access them from ASP pages with VBScript calls via "COM server" .EXEs to VFP projects (version 6 sp5) with the code to fetch the required data. This is the same ASP version we've been using for the past 3-4 years.
I've had to change the following code to avoid the use of using the table's ALIAS name when selecting a work area. Sometimes I get Error 13 Alias "MYALIAS" is not found.
Upon reviewing our logs, I sometimes saw this error following Error 24 Alias name is already in use. I think we tracked most of those issues down to the fact that when we exited the routine and returned to ASP, and then made another call from ASP we expected to be in the default workarea 1 but it remembered another workarea from the prior call. I think and hope, though, that we eliminated any such ambiguous code and if our code selects any work area other than 1, then we explicitly SELECT 1 before terminating and returning to ASP.
Is this a known web issue? Are quotes discouraged, optional or encouraged? Any suggestions would be helpful.
dbMark
I've had to change the following code to avoid the use of using the table's ALIAS name when selecting a work area. Sometimes I get Error 13 Alias "MYALIAS" is not found.
Upon reviewing our logs, I sometimes saw this error following Error 24 Alias name is already in use. I think we tracked most of those issues down to the fact that when we exited the routine and returned to ASP, and then made another call from ASP we expected to be in the default workarea 1 but it remembered another workarea from the prior call. I think and hope, though, that we eliminated any such ambiguous code and if our code selects any work area other than 1, then we explicitly SELECT 1 before terminating and returning to ASP.
Is this a known web issue? Are quotes discouraged, optional or encouraged? Any suggestions would be helpful.
Code:
USE X:\mydata\mytable ORDER myorder ALIAS myAlias IN 2
SELECT myAlias && <-- I get occasional errors here
* code *
USE IN myAlias
&& changed to:
USE X:\mydata\mytable ORDER myorder ALIAS myAlias IN 2
SELECT 2 && <-- No more errors?
* code *
USE IN 2
dbMark