Click here to Skip to main content
16,006,348 members
Home / Discussions / Database
   

Database

 
GeneralSOLUTION Re: Inserting a row and retreiving the Identity value Pin
moredip7-Jan-03 8:18
moredip7-Jan-03 8:18 
QuestionUnmanaged ADO.NET? Pin
clintsinger6-Jan-03 12:32
clintsinger6-Jan-03 12:32 
GeneralSQL Connection Problem! Pin
dyerstein6-Jan-03 5:58
dyerstein6-Jan-03 5:58 
GeneralRe: SQL Connection Problem! Pin
Richard Deeming6-Jan-03 6:15
mveRichard Deeming6-Jan-03 6:15 
GeneralRe: SQL Connection Problem! Pin
dyerstein6-Jan-03 6:25
dyerstein6-Jan-03 6:25 
GeneralRe: SQL Connection Problem! Pin
leppie6-Jan-03 6:46
leppie6-Jan-03 6:46 
GeneralTable optimization Pin
alex.barylski5-Jan-03 7:39
alex.barylski5-Jan-03 7:39 
GeneralRe: Table optimization Pin
Matt Gullett5-Jan-03 9:54
Matt Gullett5-Jan-03 9:54 
May I suggest a 3rd option?

Use 2 tables. Combine the auth_users and members table. Add a new table called user_props. user_props will need 3 columns.

pkid (ref auth_users)
prop_nm (char 50?)
prop_vl (text)

In the first table, plan on just keeping the absolute minimum # of fields you will need for about any system. (PKID, USERID, PSWRD, ACTV) may be enough.

Define your own prop_nm values and place all other user related details here, stored vertically. (Ideall you will have a 3rd table which has at least 2 columns and defines the prop_nm values you create.)

You will only ever need 2 queries and these should be encapsulated into a single ASP module, C# class or whatever. You will be able to add new properties whenever you want (there will be more, count on it.)

I use this tecnique for user definition and it has payed off many, many times. I don't recommend using this tecnique for just any data but for user login info, it is great.

Just my 2 cents.
GeneralRe: Table optimization Pin
alex.barylski5-Jan-03 12:54
alex.barylski5-Jan-03 12:54 
GeneralRe: Table optimization Pin
Matt Gullett5-Jan-03 13:11
Matt Gullett5-Jan-03 13:11 
GeneralRe: Table optimization Pin
alex.barylski5-Jan-03 14:27
alex.barylski5-Jan-03 14:27 
GeneralRe: Table optimization Pin
Matt Gullett5-Jan-03 15:26
Matt Gullett5-Jan-03 15:26 
GeneralRe: Table optimization Pin
alex.barylski5-Jan-03 16:24
alex.barylski5-Jan-03 16:24 
GeneralRe: Table optimization Pin
Matt Gullett5-Jan-03 16:50
Matt Gullett5-Jan-03 16:50 
GeneralRe: Table optimization Pin
alex.barylski5-Jan-03 17:19
alex.barylski5-Jan-03 17:19 
GeneralADO connection object Pin
Shamoon5-Jan-03 7:38
Shamoon5-Jan-03 7:38 
GeneralRe: ADO connection object Pin
Matt Gullett5-Jan-03 9:56
Matt Gullett5-Jan-03 9:56 
GeneralColse RecordSet Pin
Mazdak4-Jan-03 1:50
Mazdak4-Jan-03 1:50 
GeneralRe: Colse RecordSet Pin
David Wulff4-Jan-03 7:48
David Wulff4-Jan-03 7:48 
GeneralRe: Colse RecordSet Pin
Mazdak4-Jan-03 9:04
Mazdak4-Jan-03 9:04 
GeneralMS Access Count Pin
Jassim Rahma1-Jan-03 4:06
Jassim Rahma1-Jan-03 4:06 
GeneralRe: MS Access Count Pin
Roger Wright1-Jan-03 5:37
professionalRoger Wright1-Jan-03 5:37 
GeneralRe: MS Access Count Pin
David Wulff1-Jan-03 5:39
David Wulff1-Jan-03 5:39 
QuestionmySQL, what do you think? Pin
Jassim Rahma1-Jan-03 4:02
Jassim Rahma1-Jan-03 4:02 
AnswerRe: mySQL, what do you think? Pin
Douglas Troy1-Jan-03 5:48
Douglas Troy1-Jan-03 5:48 

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.