Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 Avoid Duplicates Records

Author  Topic 

aoriju
Posting Yak Master

156 Posts

Posted - 2008-10-25 : 03:58:47
Dear All,

I am working with asp.net 2005 and sql server 2005.When i am trying to add details to Database.Open the corresponding page .Also taken the same page in Another window.From first window i am press the save button.after a few minutes i am press the second windows save button.Both records are saved .how to avoid this.

With Regards
Riju A.O
KottSoftware
Kochi.

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2008-10-25 : 04:02:21
Put an Unique constraint on your column which want to be unique valued. this will avoid addition of same value again and throws error if you try to insert same value again.
Go to Top of Page
   

- Advertisement -