dbTalk Databases Forums  

How to stop duplicate entry

microsoft.public.sqlserver.clients microsoft.public.sqlserver.clients


Discuss How to stop duplicate entry in the microsoft.public.sqlserver.clients forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
vinodkus@gmail.com
 
Posts: n/a

Default How to stop duplicate entry - 02-06-2008 , 09:46 AM






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

Reply With Quote
  #2  
Old   
Rick Byham, \(MSFT\)
 
Posts: n/a

Default Re: How to stop duplicate entry - 02-06-2008 , 10:46 AM






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.

<vinodkus (AT) gmail (DOT) com> wrote

Quote:
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


Reply With Quote
  #3  
Old   
Rick Byham, \(MSFT\)
 
Posts: n/a

Default Re: How to stop duplicate entry - 02-06-2008 , 10:46 AM



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.

<vinodkus (AT) gmail (DOT) com> wrote

Quote:
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


Reply With Quote
  #4  
Old   
Rick Byham, \(MSFT\)
 
Posts: n/a

Default Re: How to stop duplicate entry - 02-06-2008 , 10:46 AM



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.

<vinodkus (AT) gmail (DOT) com> wrote

Quote:
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


Reply With Quote
  #5  
Old   
Rick Byham, \(MSFT\)
 
Posts: n/a

Default Re: How to stop duplicate entry - 02-06-2008 , 10:46 AM



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.

<vinodkus (AT) gmail (DOT) com> wrote

Quote:
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


Reply With Quote
  #6  
Old   
Rick Byham, \(MSFT\)
 
Posts: n/a

Default Re: How to stop duplicate entry - 02-06-2008 , 10:46 AM



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.

<vinodkus (AT) gmail (DOT) com> wrote

Quote:
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


Reply With Quote
  #7  
Old   
Rick Byham, \(MSFT\)
 
Posts: n/a

Default Re: How to stop duplicate entry - 02-06-2008 , 10:46 AM



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.

<vinodkus (AT) gmail (DOT) com> wrote

Quote:
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


Reply With Quote
  #8  
Old   
Rick Byham, \(MSFT\)
 
Posts: n/a

Default Re: How to stop duplicate entry - 02-06-2008 , 10:46 AM



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.

<vinodkus (AT) gmail (DOT) com> wrote

Quote:
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


Reply With Quote
  #9  
Old   
Rick Byham, \(MSFT\)
 
Posts: n/a

Default Re: How to stop duplicate entry - 02-06-2008 , 10:46 AM



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.

<vinodkus (AT) gmail (DOT) com> wrote

Quote:
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


Reply With Quote
  #10  
Old   
Rick Byham, \(MSFT\)
 
Posts: n/a

Default Re: How to stop duplicate entry - 02-06-2008 , 10:46 AM



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.

<vinodkus (AT) gmail (DOT) com> wrote

Quote:
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


Reply With Quote
Reply




Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.