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

How to stop duplicate entry

 
   Database Forums (Home) -> Client RSS
Next:  Create a new table from csv file using SSIS  
Author Message
vinodkus

External


Since: Nov 16, 2007
Posts: 11



(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: Jan 15, 2007
Posts: 80



(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: May 30, 2006
Posts: 1



(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:
Duplicate table - Hi, In my program i need to duplicate a table in a current data base. I'm thinkin' of reading the data base columns and then rows and so i create another table Is there any other easy and fast method with SQL Server 2005, because my idea is so slow I'm..

Access complains of duplicate key - Our Access 2000 database (a front end to MSSQL2000 data) has two main tables with a 1-1 relationship. Call them Client and Assessment. (Why? Mostly just too many fields to fit in a single table.) The main data entry form has lots of tabs; the firs...

problem deploying access project - I have given a copy of my access project to user. This was developed in Access 2003 in Access 2000 file format. User PC is running Access 2000 ( 904402 SR-1). The problem seems to be that Functions are not visible to thic client so queries and forms..

Why the table is locked ? - Dear all, I have Access Font End to SQL server Back end. In an Access form, I use combobox, based on a stored procedure, which based on 1 table (SELECT LocationID, LocationDescription FROM Locations). When I open the form and check in the SQL server....

SQL problem pls help - I have installed Visual Studio 2005 beta 2 that include the SQL Express. Then I installed the SQLClient to my pc too. And when I click on the sql group An error message pops up "A connection could not be established to Computername\sqlexpress. ....
   Database Forums (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 ]