All the techniques that you can use from a regular VFP program to connect to an external SQL database can also be used in a FoxWeb script. The only thing to watch is the user, under which your FoxWeb service is running. For details on the nuances of running FoxWeb as a service please refer to the
Operating the FoxWeb Server topic of the FoxWeb documentation.