Welcome to dbFreaks.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

How to stop duplicate entry

 
   Database Help (Home) -> Client RSS
Next:  DEFAULT INSTANCE INSTALLATION PROBLEM ON SQL2005  
Author Message
vinodkus

External


Since: Feb 06, 2008
Posts: 3



(Msg. 1) Posted: Wed Feb 06, 2008 7:46 am
Post subject: How to stop duplicate entry
Archived from groups: microsoft>public>sqlserver>clients (more info?)

dear sir/madam
I have made an project in asp with sql server. All database are
without any primary key.
In one times many people are doing entry. So there is one field for
serial number generation and all value of this field should be unique.
But due to huge amount of entry some times clients entry
simultaneously and duplicate value enters in the field. Please tell me
how to stop it. I just want If record of one person is inserting then
other person record should be in wait so that duplicate entry should
not be entered

Thanks in Advance

 >> Stay informed about: How to stop duplicate entry 
Back to top
Login to vote
"Rick Byham,

External


Since: Feb 06, 2008
Posts: 47



(Msg. 2) Posted: Wed Feb 06, 2008 8:46 am
Post subject: Re: How to stop duplicate entry [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

There are a number of ways to solve this common problem.
Read up on the identity data type and the @@IDENTITY function. The identity
data type is intended for this purpose.
I know that you may have trouble modifying an existing application to use an
identity value. You can at least add a unique index on that column of the
table to absolutely prevent duplicate values.
--
Rick Byham (MSFT)
This posting is provided "AS IS" with no warranties, and confers no rights.

wrote in message

> dear sir/madam
> I have made an project in asp with sql server. All database are
> without any primary key.
> In one times many people are doing entry. So there is one field for
> serial number generation and all value of this field should be unique.
> But due to huge amount of entry some times clients entry
> simultaneously and duplicate value enters in the field. Please tell me
> how to stop it. I just want If record of one person is inserting then
> other person record should be in wait so that duplicate entry should
> not be entered
>
> Thanks in Advance

 >> Stay informed about: How to stop duplicate entry 
Back to top
Login to vote
Bob Lehmann

External


Since: Jan 16, 2008
Posts: 5



(Msg. 3) Posted: Thu Feb 14, 2008 11:39 pm
Post subject: Re: How to stop duplicate entry [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

>> I have made an project in asp with sql server. All database are without
any primary key.

This is basic stuff. Why no PK????

Bob Lehmann

wrote in message

> dear sir/madam
> I have made an project in asp with sql server. All database are
> without any primary key.
> In one times many people are doing entry. So there is one field for
> serial number generation and all value of this field should be unique.
> But due to huge amount of entry some times clients entry
> simultaneously and duplicate value enters in the field. Please tell me
> how to stop it. I just want If record of one person is inserting then
> other person record should be in wait so that duplicate entry should
> not be entered
>
> Thanks in Advance
 >> Stay informed about: How to stop duplicate entry 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
OLEDB: Prepared cmd with NULL input param for NOT NULL INT.. - Provider: SQLOLEDB Version: SQL Server 2000 8.00.760 Script for creating table: CREATE TABLE [dbo].[ADRVERTRETER] ( <font color=purple> ; [ROWID] [timestamp] NULL ,</font> <font color=purple> ; [ROWVERTRETER] [int] NO...

[MS Design Tools] - Class not registered.&quot; - On a Windows 2000 pro workstation I am using SQL 2000 enterprise manager I am trying to return all rows, I get the error message "An unexpected error happened during this operation. [MS Design Tools] - Class not registered." I have reinstall...

Need help choosing front end for SQL Server - I've been working on an Access 97 database that's pretty much reached it's limit in terms of performance and reliability. Although it supports relatively few users (5-10 concurrent) it contains a lot of data (around 30 tables, some with several million..

SQL server tables read-only to ADP - I have successfully migrated an Access 2003 database to SQL server - at least all the tables and queries that resolve into views migrated successfully. I also sucessfully migrated all my forms and code into an ADP project. Everything works with one..

Opening table in SQL Server 2005? - This ought to be easy. But I can't figure out how to do it. Using Enterprise Manager in SQL Server 2000, I point to a table, select it, right click and choose Open Table-> Return all rows. Now I have the table open and I can edit to my heart's..
   Database Help (Home) -> Client All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]