I have basic login for a website I am using and I simply don't want the register to allow inserting of the same data. So far in a stored procedure I have.
INSERT INTO RegisteredUsers (Email, PasswordHash)
VALUES (@Email, HASHBYTES('SHA2_512', @Password))
How would I update this so that it does not allow duplicate records of email?
Thanks