Click here to Skip to main content
15,906,329 members
Home / Discussions / Database
   

Database

 
AnswerRe: ## in sql server..? Pin
Ashfield27-Aug-09 20:56
Ashfield27-Aug-09 20:56 
AnswerRe: ## in sql server..? Pin
Coding C#28-Aug-09 1:58
Coding C#28-Aug-09 1:58 
Questiondesign questions - tables to support users Pin
Kimmmmy27-Aug-09 9:58
Kimmmmy27-Aug-09 9:58 
AnswerRe: design questions - tables to support users Pin
Luc Pattyn27-Aug-09 10:57
sitebuilderLuc Pattyn27-Aug-09 10:57 
GeneralRe: design questions - tables to support users Pin
Kimmmmy27-Aug-09 12:04
Kimmmmy27-Aug-09 12:04 
GeneralRe: design questions - tables to support users Pin
Luc Pattyn27-Aug-09 12:29
sitebuilderLuc Pattyn27-Aug-09 12:29 
GeneralRe: design questions - tables to support users Pin
Kimmmmy27-Aug-09 12:38
Kimmmmy27-Aug-09 12:38 
GeneralRe: design questions - tables to support users Pin
Mycroft Holmes27-Aug-09 14:34
professionalMycroft Holmes27-Aug-09 14:34 
Didn't look at the graphic but this is a simple issue, you need to answer 1 question. Can a user have more that 1 role.

Yes
UserTable - all the details of the user as per Luc's suggestion
RoleTable - a list of all the roles available
LinkTable - a many to many link table with userid and roleid

When the user logs in they select the role to be used, you have a chicken/egg issue here - how do I filter the possible roles bfore the user has logged in, you don't you validate the role after the user and return for a role selection is an incorrect one is requested.

No
UserTable - with the additional field of RoleID
RoleTable - a list of all the roles available

Validate the user only, role is automatic.



GeneralRe: design questions - tables to support users Pin
Luc Pattyn27-Aug-09 15:25
sitebuilderLuc Pattyn27-Aug-09 15:25 
GeneralRe: design questions - tables to support users Pin
Mycroft Holmes27-Aug-09 16:04
professionalMycroft Holmes27-Aug-09 16:04 
Questionproblem:storing rtf formatted data into sql Pin
askhar51627-Aug-09 2:30
askhar51627-Aug-09 2:30 
AnswerRe: problem:storing rtf formatted data into sql Pin
εїзεїзεїз2-Sep-09 13:53
εїзεїзεїз2-Sep-09 13:53 
GeneralRe: problem:storing rtf formatted data into sql Pin
askhar5162-Sep-09 17:12
askhar5162-Sep-09 17:12 
Questionparent and child interbase query Pin
peter83126-Aug-09 20:28
peter83126-Aug-09 20:28 
AnswerRe: parent and child interbase query Pin
SeMartens26-Aug-09 20:38
SeMartens26-Aug-09 20:38 
GeneralRe: parent and child interbase query Pin
peter83126-Aug-09 21:04
peter83126-Aug-09 21:04 
GeneralRe: parent and child interbase query Pin
SeMartens26-Aug-09 21:09
SeMartens26-Aug-09 21:09 
GeneralRe: parent and child interbase query Pin
peter83126-Aug-09 21:19
peter83126-Aug-09 21:19 
GeneralRe: parent and child interbase query Pin
SeMartens26-Aug-09 21:25
SeMartens26-Aug-09 21:25 
GeneralRe: parent and child interbase query Pin
peter83126-Aug-09 21:37
peter83126-Aug-09 21:37 
GeneralRe: parent and child interbase query Pin
SeMartens26-Aug-09 21:43
SeMartens26-Aug-09 21:43 
GeneralRe: parent and child interbase query Pin
peter83126-Aug-09 21:42
peter83126-Aug-09 21:42 
GeneralRe: parent and child interbase query Pin
SeMartens26-Aug-09 21:45
SeMartens26-Aug-09 21:45 
GeneralRe: parent and child interbase query Pin
peter83126-Aug-09 21:52
peter83126-Aug-09 21:52 
GeneralRe: parent and child interbase query Pin
SeMartens26-Aug-09 22:04
SeMartens26-Aug-09 22:04 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.