> > > Hi Experts
> > >
> > > I am facing problem of Data Base Security. Users at user end open table in browse window and change data manually and blaming me that my software automatically changes their data. No body is accepting the responsibility. Some of my friends are saying me to shift to SQL Data Base and leave VFP becase its data is unsecured. I am using Free Table. If I shift then is it my correct decesion. Is VFP have no solution at all for this kind of problems.
> > >
> > > Tnnx in advance
> > >
> > > Ahsan Rana
> >
> > In addition to what Tushar told you, remember that there are additional costs, as well as major changes to your application code, to changing to another database. You SHOULD use a DBC though and, since you are working in VFP 7.0 you can use Database Events to control access to your data from outside the application.
> >
> > Check out "Database Container Events" in the help file - specifically you need to use dbc_BeforeOpenTable and test to see if your application is running (check for some variable, object or property) and if it isn't, just return .F. That will stop users from opening the tables outside of the application by using VFP and Browse!
> >
> > However, it will NOT stop users from accessing the data with hacking tools or programs.
> >
> > Regards
> > Andy Kramek
> > Microsoft MVP (Visual FoxPro)
> >
Tightline Computers Inc, Akron Ohio, USA>
> Is it benefitable in any way to scramble the data so the customer will not understand the fields to modify .
Do you mean, encrypt the data? If so, it is advisable to use encryption only when you do not want to allow inappropriate users to see what is in the table. Using encryption adds to your programming workload as you have to decrypt and re-encrypt each record as the user modifies them. (You have to allow appropriate users to see the data somewhere.)
Encryption will not be a solution to Ahsan's problem. The user can still make changes to the data with a browse. If it were encrypted though, when the app tries to decrypt that record, it would probably come out as garbage.
Ken
You shall know the truth - and the truth shall set you free. (John 8:33)