1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Prevent duplicate values

Discussion in 'C#' started by AngelicOne, Sep 1, 2010.

  1. AngelicOne

    AngelicOne New Member

    Joined:
    Sep 1, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    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?
     
  2. NewsBot

    NewsBot New Member

    Joined:
    Dec 2, 2008
    Messages:
    1,267
    Likes Received:
    2
    Trophy Points:
    0
    Make the username field as unique
     

Share This Page