04-22-09, 15:02 #1Registered User
- Join Date
- Nov 2008
Unanswered: DB CONCURRENT ACCESS ISSUE IN ASP.net
I have a website in which i sell PIN numbers of telephone cards.
Telephone cards will be added to the shopping cart by the user. After payment he will be emailed the PIN number of the card he bought
I need to solve two issues
1) How to make sure that a unsold product is in the database after payment. example: suppose there is only 1 product in the database. Two users selected the product. Two of them made the payment. But only one will get the product (What i can do here?)
2) How i can block access to a record in the database when other process is using it? Suppose 2 users bought a card , how can i prevent issuing same PIN to two different users?
I AM USING SQL SERVER 2005 with ASP.net
Thanks in advance.
04-27-09, 00:11 #2(Making Your Life Easy)
Provided Answers: 10
- Join Date
- Feb 2004
- New Zealand
my understand is
I would look at
In the Product table put Flag Sold in the Feild.
I think you mike have to have a PIN Table
then when a Pin number is sold it get add the the PINtable along with the USERIDhope this help
the aim is store once, not store multiple times
Remember... Optimize 'til you die!
Access based on my own environment: DAO3.6/A97/A2000/A2003/A2007/A2010
VB-NET based on my own environment started 2007
SQL-2005 based on my own environment started 2008
YOUR PASSWORD IS JUST LIKE YOUR TOOTHBRUSH DON'T SHARE IT.
DONT WORRY ABOUT THOSE WHO TALK BEHIND YOUR BACK
THEY'RE BEHIND YOU FOR A REASON