Click here to Skip to main content
15,890,609 members
Home / Discussions / Database
   

Database

 
GeneralRe: SQL Server security Pin
Paul Conrad29-Dec-05 18:25
professionalPaul Conrad29-Dec-05 18:25 
GeneralRe: SQL Server security Pin
Fad B29-Dec-05 21:14
Fad B29-Dec-05 21:14 
GeneralRe: SQL Server security Pin
Fad B29-Dec-05 21:15
Fad B29-Dec-05 21:15 
QuestionParsing Text file w/ multple datasets and schema.ini? Pin
Joshua Lunsford29-Dec-05 6:33
Joshua Lunsford29-Dec-05 6:33 
QuestionExport xls from sql Pin
GoodQuestion28-Dec-05 6:52
GoodQuestion28-Dec-05 6:52 
AnswerRe: Export xls from sql Pin
S Douglas5-Jan-06 0:31
professionalS Douglas5-Jan-06 0:31 
GeneralRe: Export xls from sql Pin
GoodQuestion11-Jan-06 12:02
GoodQuestion11-Jan-06 12:02 
QuestionSQL table organization for authentication Pin
shapper28-Dec-05 3:48
shapper28-Dec-05 3:48 
Hello,

I have a similar post in Asp.Net forum. My questions are related with Asp.Net 2.0 and SQL 2005 so I am not sure if this shouldn't be the best forum to post this message.

I am working on an Asp.Net 2.0 / MSSQL 2005 web site with authentication.

My web site has two type of users: "students" and "professors". They are not related!
All users need to login. Students use the role "student" and professors use the role "professor".

The information for students is different from the information of professors.
I could put all students and professors in the same table and leave some fields blank.

My option was to create the following tables:
A) "Authentication" with the fields:
[UserId], [Password], [PasswordFormat], [MobilePIN], [Email], [PasswordQuestion],
[PasswordAnswer], [IsApproved], [CreateDate], [LastLoginID] and [UserRole].

B) "Students" with the field [StudentID] and all the information fields for students.

C) "Professors" with the field [ProfessorID] and all the information fields for professors.

My questions are:
1. Am I following the right approach by using these 3 tables?
2. Should I place all info from users (students, professors and authentication) in "Authentication" table?
3. Should I keep only two tables, "Students" and "Professors" and move the login information to each record in these tables?
4. If using the 3 tables how can I know the info for a user after it logins? I could use a foreign key in Authentication table but I have 2 tables: students and professors.

Anyway this is really confusing.

Can someone, please, give me some advice of how to create the tables and set this authentication?

Thanks,
Miguel
AnswerRe: SQL table organization for authentication Pin
Paul Conrad28-Dec-05 6:38
professionalPaul Conrad28-Dec-05 6:38 
GeneralRe: SQL table organization for authentication Pin
Paul Conrad28-Dec-05 6:51
professionalPaul Conrad28-Dec-05 6:51 
Questionhow to declare the procedures Pin
sasire1828-Dec-05 0:53
sasire1828-Dec-05 0:53 
AnswerRe: how to declare the procedures Pin
S. Akif Kamal28-Dec-05 1:24
S. Akif Kamal28-Dec-05 1:24 
Questionstoring xml doc in asp page uisng sqlserver Pin
suneelbabu_net27-Dec-05 19:02
suneelbabu_net27-Dec-05 19:02 
Questionstoring xml file in sqlserver Pin
suneelbabu_net27-Dec-05 15:59
suneelbabu_net27-Dec-05 15:59 
AnswerRe: storing xml file in sqlserver Pin
rihdus27-Dec-05 18:19
rihdus27-Dec-05 18:19 
GeneralRe: storing xml file in sqlserver Pin
suneelbabu_net27-Dec-05 18:42
suneelbabu_net27-Dec-05 18:42 
QuestionMS-SQL server Self join Pin
Amit Malik25-Dec-05 19:11
Amit Malik25-Dec-05 19:11 
AnswerRe: MS-SQL server Self join Pin
Michael Potter27-Dec-05 3:22
Michael Potter27-Dec-05 3:22 
Questiondelete trigger Pin
Vipin.d25-Dec-05 17:16
Vipin.d25-Dec-05 17:16 
AnswerRe: delete trigger Pin
Colin Angus Mackay26-Dec-05 2:40
Colin Angus Mackay26-Dec-05 2:40 
Questionneed help about database Pin
ngAnhTuan24-Dec-05 20:54
ngAnhTuan24-Dec-05 20:54 
AnswerRe: need help about database Pin
Colin Angus Mackay26-Dec-05 2:37
Colin Angus Mackay26-Dec-05 2:37 
GeneralRe: need help about database Pin
Paul Conrad28-Dec-05 5:34
professionalPaul Conrad28-Dec-05 5:34 
QuestionPL/SQL Pin
sarojsneha24-Dec-05 19:40
sarojsneha24-Dec-05 19:40 
AnswerRe: PL/SQL Pin
rihdus26-Dec-05 1:29
rihdus26-Dec-05 1:29 

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.