Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MM Security with SQL Server
Message
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Title:
MM Security with SQL Server
Miscellaneous
Thread ID:
00391395
Message ID:
00391395
Views:
64
I am having a problem with Security on a SQL Server install. On the Users Form, Access Tab everything works fine until I change the access level of a control. Then when I select another control, the access level does not reflect the true setting, it continues to display the value of the last changed control. So if I had 3 controls called A, B & C and there currently wasn't any security set for this user, they would all defualt to FULL. Let's say I change B to be READ ONLY, when I then click on A, it displays READ ONLY as well. In stepping through the code, this is what I found:

1. When I change the access level, the SetControlAccess method of the SecurityOBJ gets called
2. If the control is not found in the v_usergroupsecure view, it calls a This.oBizObj.New
3. From that point on, when I select a different control, the GetAccess method of the SecurityObj is failing on the Seek. Therefore it continues to return the previous value.

When the seek fails, it calls the error routine in the cSecurityRulesFullAccess class with error # 1526 (ODBC connectivity error). After getting the error, I realised there are stored procedures for the users, groups and usgrlink tables. How should these be handled when switching from local to remote? Do you think this is the source of the problem?

Kind Regards,

Mat
Matthew Kennedy
Decision Support Technology Inc.

"I try to take one day at a time, but sometimes several days attack me all at once." ~ Ashleigh Brilliant

New Jersey Dot Net User Group
Next
Reply
Map
View

Click here to load this message in the networking platform