473,387 Members | 1,619 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Should i create separate login table??

7
Qusetion 1

I am developing a website mainly for maintaining students record in asp.net and using sql server 2005 database as backend.

These site has three types of user Admin, faculty and student.

Each user have some similar info (user id, password, email, contactno, status) and some different info to be stored(e.g. department, class, section, etc).

All will login to website.

I have three different tables containing personal information for each type of user namely admin, faculty & student

Question is

whether to store login information in these tables with personal info(separate for each user)

or

create a new table only for login purpose and maintain personal info in different table. and map user id in login table as foreign key from personal info table

NOTE:
At the time of login user selects which type of user he is using radio button.


Which is the better approach please suggest. I am confused. throw some light.


************************************************** ******


Question 2

If I create separate login table how will I map user ID from 3 different personal info table to login table as foreign key where they again act as primary key?

(userID will be Primary key in personal info table in each table)
Apr 14 '11 #1
0 1330

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: dev | last post by:
how create a temp table as a copy of a existing table and then update1 field and insert the hole temp table back in the existing table? please any help? if i have 10 fields in 1 record and...
62
by: robert | last post by:
I'd like to use multiple CPU cores for selected time consuming Python computations (incl. numpy/scipy) in a frictionless manner. Interprocess communication is tedious and out of question, so I...
4
by: active | last post by:
Converting a 24bpp to 8bpp the default color table leaves something to be desired. How does one create a color table. Is there any Windows API or managed class that does that? I started...
28
by: jatrojoomla | last post by:
Hi! could anyone give me some clue that how to create 'remember login' functionality during login Thanks Sukalyan
14
by: Lambda | last post by:
I'd like to create separate character pointers, pass them to a function to assign each one different value, and assign the pointers to an array. But when I try: #include <stdio.h> #include...
4
by: =?Utf-8?B?QmVubnk=?= | last post by:
How do I create a new IE window (client script or ASP.NET server code) so that it will create a new ASP session with each new window? Thanks.
1
by: tariquetuku | last post by:
How to create a login and logout link in a php page which will affect the session variable? Any code available?
1
by: nitarag | last post by:
Is there a way to create a login user control that does it's postback using SSL so that the entered username and password are protected? I need to do this without SSL Encrypting the entire page...
4
by: vipan9 | last post by:
i want to create a login page in which one has option to register his/her profile? And one page where one can upload a file or if has uploaded and wants to make modification can also do? Last page...
1
by: battu ganapati | last post by:
i want to create a login window with particular password
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.