473,473 Members | 4,257 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

ASP.Net Duplicating DB Entries

I have an ASP.net order entry system that will occasionally insert duplcate
orders into the database. We are using SQL Server for the session state.
This also only seems to happen when the server has not been rebooted for a
long period of time. When it starts duplicating, it will do so about 3 or 4
times and it's not every order. Some will come in fine the next one gets
duped, the next couple are fine, then another dupe or two, etc. Anyone have
any ideas why this might be happening?

Thanks,

Todd
Nov 19 '05 #1
2 1092
Have you considered the possible effect of a double-click? Depending on your
design it may be a possibility.

"Todd Plambeck" wrote:
I have an ASP.net order entry system that will occasionally insert duplcate
orders into the database. We are using SQL Server for the session state.
This also only seems to happen when the server has not been rebooted for a
long period of time. When it starts duplicating, it will do so about 3 or 4
times and it's not every order. Some will come in fine the next one gets
duped, the next couple are fine, then another dupe or two, etc. Anyone have
any ideas why this might be happening?

Thanks,

Todd

Nov 19 '05 #2
WJ
"Todd Plambeck" <tp***@nospamflash.net> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
I have an ASP.net order entry system that will occasionally insert duplcate
orders into the database.
The only thing to prevent duplicate data record is to designate a field
within the Order table as Primary Key/Unique and not null. Then trap the
insert command to see who causes that !
We are using SQL Server for the session state.


This should be fine. I am using this too and found out that it is very
reliable. Performance is not that bad!

John
Nov 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: abu | last post by:
I'm having a problem with Fast Template duplicating the content. Here's the code, hoping someone may be of help, thanks! while(list($last_name)=mysql_fetch_array($data1)) { $data2 =...
5
by: DB_2 | last post by:
I was wondering if there was a way to create a copy of a table in a single SQL statement, together with its column structure and data. In Oracle, there is a "CREATE TABLE new-table AS...
11
by: EdB | last post by:
I'm still having trouble grasping what's going on here and how to resolve it. In VB6 I have a form that has several combo boxes with lots of items in each; it takes a long time to load the form...
2
by: Samuel R. Neff | last post by:
I'm trying to find a good way to handle Control.InvokeRequired without duplicating four lines of code in every function/event. Typically what I've seen in books is this: If InvokeRequired Then...
8
by: Josetta | last post by:
I have found a wealth of information here on how to duplicate records in forms with subforms. I have adapted code found here to work with my forms. It works beautifully the first time I hit the...
0
by: rmli | last post by:
Duplicating a Database using RMAN http://quickdba.blogspot.com/2006/05/duplicating-database-using-rman_22.html
2
by: mavmavv | last post by:
I have a Form where I have created a duplicate record button, no problem... The subform is where my problem lies. The subform displays data matching the mainform's ID, these two values are...
3
by: Darren.Ratcliffe | last post by:
Hi everyone I'm using v 2.0 of the framework with C# and am developing a web application. I am finding that my cookie names are duplicating themselves over and over again, for example when I...
2
by: Ciaran | last post by:
Hi is there a way of duplicating the same mysql_query resource result or is there a way to stop it from being cleared once it is no longer needed? I need to run a ......
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.