Currently I use free Advantage Database Local DLL files for accessing DBF-s from our applications. Now I wish to access them via Internet (ADSL). I installed the latest ADS 9.10.0.9 and changed the line SET SERVER LOCAL to SET SERVER REMOTE and tested our simple application and it was working OK. In the next step I created Advantage Data Dictionary file (C:\AAPL\ADSTEST.ADD) using the latest Advantage Data Architect and changed the line SET SERVER REMOTE to AdsSetServerType(ADS_AIS_SERVER). I also added the following code:
xRDDPath := 'c:\aapl\'
cDict:='adstest.add'
G_Msg('Povezovanje preko interneta ... ' + xRDDPath + cDict)
if AdsConnect60( xRDDPath + cDict, ADS_AIS_SERVER, "ADSSYS")
...
I also shared volume C: as ADS91 with full access and changed ADS.INI on client machine:
[MASTERM1]
INTERNET_IP=192.168.1.101
INTERNET_PORT=50101
[DRIVES]
C:=\\MASTERM1\ADS91
In Data Dictionary I enabled "Internet Access" on security tab and allowed non-password users... User ADSSYS was also set to have internet access ...
I temporarily disabled firewall ...
Now the function AdsConnect60 returns .T. so it seems that connection is working OK, but when our app tries to open DBF (we use full path for example: C:\AAPL\ADST\DAT\PRVA.DBF), we receive an error.
BTW, I would like to use free tables because tipically our app opens DBFs in tree different subfolders inside C:\AAPL.
How do you open DBF via AIS?
Thanks, Roman
P.S. Here is quote from ADS help file:
To use the new Internet functionality you will need to create a data dictionary. The Internet server will use the data dictionary to validate users. Free Tables (tables not in a Data Dictionary) can be opened through an Internet connection. To deny a user’s rights to a table, the table needs to be added to the Data Dictionary and the user’s rights removed from the table.