Dutch
Step by Step:
dutch wrote:1. Do I have to create Data Dictionary for ADS only?
Not at all, if you don't want, you don't have to create Data Dictionary, you can keep working with your tables as "free tables" using the same source code you are using actually, but is very important that when using the DBF tables you include the full path into the USE command in the UNC form:
USE \\server\share\folder\file.dbf
If work with local DBFs do the same:
USE .\local.dbf
or
USE c:\folder\file.dbf
DD Creation is necesary when you want to use the Internet Server, or when you want to use stored procedures, triggers or referential integrity.
Anyway to create a Data Dictionary is very easy, just go to the DATABASE option on the main menu of the ARC, create a new databases, add the tables, add users and that's all.
Minor changes have to be done in your source code to use DDs, simply use:
lConnect := AdsConnect60(<datadictionary>,<servertype>,<user>,<password>)
Will return true is the connection to the DD was succesfull, false if not.
Once connected to the DD, you can keep using your XBASE commands as usual (USE, APPEND REPLACE, etc).
Please notice that when using DDs, there's no need to incluye the path to the DBF file in your use command, just the name is needed since you are connected to a DD and the DD will handle all the paths stuff.
dutch wrote:2. If I install correctly, why I can open file in ADS folder without permission?
That's due your server configuration, you have to go to your server machine, and stop sharing the folder where the data is, in some cases you will have to share the folder with the data, but you will have to remove *ALL* the permissions to that folder except for the "SYSTEM" user. SYSTEM user should be the only user with read and write permissions to the folder where the data is.
In your source code add:
AdsRightsCheck(.F.)
This will skip the user rights checking, and the ADS programm will be able to go into the data in the server.
dutch wrote:3. Why I can delete file in ADS folder from Explorer easily?
As explained before, you have to remove the user access in the server configuration.
Regards
RF
http://www.google.com