Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Beginning ASP.NET 2.0 and Databases
This is the forum to discuss the Wrox book Beginning ASP.NET 2.0 and Databases by John Kauffman, Bradley Millington; ISBN: 9780471781349
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 2.0 and Databases section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old November 5th, 2008, 02:53 PM
Registered User
 
Join Date: Nov 2008
Location: , , .
Posts: 1
Thanks: 1
Thanked 0 Times in 0 Posts
Default Duplicate Record insersion

Duplicate Record insersion when application get stucked asp.net -sql - AJAX

Hi everyone,
 i'm developing a web based inventory control system using asp.net 2005 and sql server 2005 .i also have used AJAX here. when running that web application (IIS) on server 2003 core 2 duo system some time application getting stucked .i have noticed on that time application has inserted duplicated records in to data base. any one who got success from that matter please help me.
Thanks
Nishantha

  #2 (permalink)  
Old November 5th, 2008, 04:38 PM
Friend of Wrox
 
Join Date: Jun 2008
Location: Snohomish, WA, USA
Posts: 1,649
Thanks: 3
Thanked 141 Times in 140 Posts
Default

Create an index on one or more of the fields that should not be duplicated and make the index "unique".

Now you will get an error if you try to create a duplicate.

In other words, solve this in the database, not in your .NET coding.
The Following User Says Thank You to Old Pedant For This Useful Post:
nishanthahe (August 31st, 2009)
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Stop duplicate record msbsam SQL Server 2000 1 March 10th, 2008 11:24 AM
Display Record Frm 2Diff Tables&Without Duplicate future Classic ASP Databases 3 November 12th, 2006 12:16 PM
Subform allows end-user to make duplicate record pkaptein1 Access 7 May 25th, 2005 11:34 AM
Record locking - user needs the next queued record cbtoolkit SQL Server 2000 0 December 6th, 2004 08:29 AM
Checking for duplicate record in jsp Regornil JSP Basics 0 July 30th, 2004 01:55 AM



All times are GMT -4. The time now is 10:44 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.