Database
i have a form with a datagrid listing all my forms and their access rights how can i create a table for storing this ,i have 32 forms now, am setting rights depends on user level, help me to design the table
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

Sukesh MarlaRank #461 · 5.4K reputationPosted Sep 1, 2012, 2:15 AM EDT
Create A table Called Tbloptions (OptionId,OptionName,IsActive)
TblUser(UserId,UserName,......)
TblUserRights(UserId,OptionId,IsNew,IsEdit);
Or Else
Create One more Table
Tbloptions (OptionId,OptionName,IsActive)
TblRoles(RoleId,RoleName);
TblRoleRight(RoleId,OptionId,IsNew,IsEdit);
TblUser(UserId,UserName,RoleId,......)
If you have some users whio belongs to same set of rights , assign them same role.
and assign rights to Role instead of assigning to user
Check this is correct answer if it helped.