Results 1 to 2 of 2
  1. #1
    Join Date
    Nov 2012
    Posts
    14

    Post Unanswered: INSERT Command Help

    Hi
    I am making a login form in vb.net using VS(Ultimate version ) and sql Express edition

    Is there a way to not let user insert dulpicate data into my sql Express database through sql insert command without using validations in my code?

  2. #2
    Join Date
    Jun 2003
    Location
    Ohio
    Posts
    12,592
    Provided Answers: 1
    Put a unique constraint on your table.
    Your code will still need to handle the error message returned.
    If it's not practically useful, then it's practically useless.

    blindman
    www.chess.com: "sqlblindman"
    www.LobsterShot.blogspot.com

Posting Permissions

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