Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

User database

Posted on 2003-10-28
5
Medium Priority
?
172 Views
Last Modified: 2010-04-01
Can anyone point me in the direction of the SQL DDL for a standard website user database? E.g. username, password, address etc.
 
Perhaps as part of a larger ecommerce db?
0
Comment
Question by:CEHJ
  • 3
  • 2
5 Comments
 
LVL 3

Expert Comment

by:krispols
ID: 9648384
create table USERS(
USR_ID numeric(10,0) identity,
USR_LOGIN varchar(20) not null,
USR_PWD varchar(15) not null,
USR_PWD_PHRASE varchar(100) null,
USR_PWD_ANSWER varchar(100) null,
USR_EMAIL varchar(50) not null,
USR_EMAIL_OK char(1) not null,
USR_CREATED_DATE datetime not null,
USR_CHANGE_DATE datetime not null)

the field USR_EMAIL_OK is must be set to 'N' until user confirm his email address by answer to the confirm email, then set to 'O'.

regards
0
 
LVL 86

Author Comment

by:CEHJ
ID: 9652799
OK thanks. I'm toying with the notion of there being no id column though. Possibly email as PK...
0
 
LVL 3

Accepted Solution

by:
krispols earned 200 total points
ID: 9662328
hello CEHJ,

Carrefull with PK on varchar type, it's really slowest than on numric type. It's also consume more disk space to build the index.

regards
0
 
LVL 86

Author Comment

by:CEHJ
ID: 9665975
That's a point, thanks.
0
 
LVL 86

Author Comment

by:CEHJ
ID: 10226152
Thanks. Although i've still not come  to a decision on how these things should be done!
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Your business may be under attack from a silent enemy that is hard to detect. It works stealthily in the shadows to access and exploit your critical business information, sensitive confidential data and intellectual property, for commercial gain. T…
Mailbox Corruption is a nightmare every Exchange DBA wishes he never has. Recovering from it can be super-hectic if not entirely futile. And though techniques like the New-MailboxRepairRequest cmdlet have been designed to help with fixing minor corr…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…

926 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question