Database Management
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesDatabase Management

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old March 20th, 2003, 07:15 PM
No1Wolfe No1Wolfe is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Posts: 3 No1Wolfe User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question Access Database 2000 & ASP problem HELP ! asap

Hi everyone ....

I am having a huge problem trying to find a soluation to an on-going error when I run my shoppingcart I am developing.

The Error occurs when I have more than one user logged in and tries to put the exact same product into their shoppingcart right after the first shopper added it successfully without Error.

I have set it up where all new shoppers get their own unique shopperID and their own unique shoppingcartID. When they are ordering items, all items being placed into their shoppingcart are held in a temp table before going to CheckOut where the items in the cart will then be placed into a permanent order table.

Critical Situation as follows ::: 1st shopper puts an item in their shopping cart successfully, right after the 2nd shopper orders the exact same item but when the got to place it in their shopping cart (add to cart), using their own unique ID shoppingcart, it Errors to this >>>

Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80040E14)
[Microsoft][ODBC Microsoft Access Driver] The changes you requested to the table were not successful because they would create duplicate values in the index, primary key, or relationship. Change the data in the field or fields that contain duplicate data, remove the index, or redefine the index to permit duplicate entries and try again.
addprod.asp, line 24


Here is the code in ASP that shows were there maybe a problem with line 24 in my addprod.asp >>

If shopperid = 0 then
'Crate shopperid fist
'call openConn()
strsql = "insert into shopper(shoppingid) values ( 0 )"
conn.execute strsql
strsql = "select max(shopperid) as shopperids from shopper"
dim rs
set rs = Server.CreateObject("ADODB.Recordset")
set rs =conn.execute(strsql)
if not rs.eof then
Session("Shopperid") = rs("shopperids")
Else
Response.Redirect "error.asp?msg=" & Server.URLEncode ("We encountered technical difficulty of connecting database: Creating Shopperid. Please email webmaster!")
End If
rs.close



I have gone into my database, making double sure over and over that I do not have any fields or tables named the same, as well as looked at my ASP code to make sure it is string together right.

Can anyone help me here with possible soluations to fix this on-going Error occuring?

((hope I explained the above with understanding of this Error message))

It is a IIS server too, btw ... in case you need to know this

Much appreciated,
Wolfe

Reply With Quote
  #2  
Old March 27th, 2003, 12:37 AM
a.koepke's Avatar
a.koepke a.koepke is offline
Second highest poster :p
Dev Shed God 5th Plane (7000 - 7499 posts)
 
Join Date: Jul 2001
Posts: 7,323 a.koepke User rank is Sergeant (500 - 2000 Reputation Level)a.koepke User rank is Sergeant (500 - 2000 Reputation Level)a.koepke User rank is Sergeant (500 - 2000 Reputation Level)a.koepke User rank is Sergeant (500 - 2000 Reputation Level)a.koepke User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 8 h 8 m 45 sec
Reputation Power: 26
Can you give some idea on how the database is designed? It seems that the product column is not setup right

Reply With Quote
  #3  
Old March 27th, 2003, 01:11 PM
No1Wolfe No1Wolfe is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Posts: 3 No1Wolfe User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Database

All the tables I have within the Access Database ...

categories - ID and Description

customers - information on the customer themselves

oderitems - item information

order - information for payment and shipping ... billing of customer's order

products - information of items, like price etc

cartinfo (which is a temp holding for items being placed in the cart)

shipmethods - shipping costs

shopper - shopper's ID assigned to them

shoppingcart - shopping cart ID assigned to the Shopper (ID)

All the tables have primary keys as well
I do have queries ... but they are not executed before the customer finishes shopping

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesDatabase Management > Access Database 2000 & ASP problem HELP ! asap


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

 Free IT White Papers!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five "checkpoints" for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway