Win a copy of 97 Things Every Java Programmer Should Know this week in the Java in General forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

Your opinion....

 
Ranch Hand
Posts: 100
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
I am just trying to make a login page having name and password fields.I need to save the data of every user who sign in at my login page for first time for future references.I am confused in choosing whether i should use database or file to store the data..?
Plz give me ur opinion what to select..
Thanx in advance.
Poonam.
 
Ranch Hand
Posts: 273
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why not to use database? Go for it. Why you wanna use file? BK
 
Ranch Hand
Posts: 346
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

It depends on what exactly you wanna do , what are you trying to achieve
- Number of expected users ,searches required
- Change/deletion of values of records , required/not
- Flexibility required , like future addition of some field
etc etc ...
Dont forget , with files , you might need to do some dirty-work yourself . Like searlizing/synchronizing/securing access to file-records , maintaining total number of records somewhere etc etc
At the same time , with database you can get this and more like power of SQL .
Just for testing purpose file-thing should not be bad. But if i would have been you , i would have gone for file only in case database could not arranged with my web-host.

------------------
Gagan (/^_^\) SCJP2
Die-hard JavaMonk -- little Java a day , keeps u going .
 
Let's go to the waterfront with this tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic