Results 1 to 3 of 3

Thread: Constraint Doubt

  1. #1
    Join Date
    Jun 2004
    Posts
    4

    Constraint Doubt

    Hi. In a table called Groups with fields GroupID (PK), Name, how can I set a Constraint to make Name filed Unique to avoid:

    GroupID | Name
    ==========
    1 | Admin
    2 | Admin

  2. #2
    Join Date
    Jan 2003
    Location
    UK
    Posts
    277
    if you're using SQL Server ? Then these might help......

    http://www.sqlteam.com/Forums/topic....=unique,values

    http://support.microsoft.com/default...b;en-us;322002

    You may want to look into triggers as well.

  3. #3
    Join Date
    Jun 2004
    Posts
    4

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •