CFanatic

Go Back   CFanatic > Programming > C# Programming

Join CFanatic Forum Now

Prevent duplicate values topic posted under C# Programming which is a part of Programming category in CFanatic Forum
Reply
 
Thread Tools Display Modes
  #1  
Old 08-31-2010, 11:50 PM
 
Join Date: Aug 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
AngelicOne is on a distinguished road
| More
Prevent duplicate values

I have a database that needs to have unique values wherein it will provide an error saying "Username already exist" and will not add to database. How to do this?
Reply With Quote
  #2  
Old 09-01-2010, 12:01 AM
shabbir's Avatar
Administrator
 
Join Date: Sep 2006
Posts: 1,158
Thanks: 48
Thanked 62 Times in 43 Posts
shabbir has a spectacular aura aboutshabbir has a spectacular aura about
| More
Re: Prevent duplicate values

Make the username field as unique
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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Find duplicate files sdert Shell Scripting 2 01-04-2012 07:37 AM
How do you prevent a user from changing forms KazoWAR C# Programming 1 08-30-2010 10:18 PM
Infraction for pervise.zhao: Duplicate threads shabbir Help & Support / Suggestion & Feedback 0 03-12-2009 01:21 AM
Functions that return two values psppb C++ Programming 2 02-12-2008 10:11 PM
how to delete duplicate record... bh_hensem C++ Programming 0 09-11-2006 11:52 PM

 

Advertisement

CFanatic Search
Custom Search

Advertisement

All times are GMT -5. The time now is 04:23 PM.



Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO ©2010, Crawlability, Inc.
Cfanatic.com is a premier member of the IDG TechNetwork. For advertising opportunities contact here
Get Paid for Working on Projects Matching Your Expertise at Go4Expert's Jobs Board