troubleshooting Question

SQL Server Key Violation? Non-PK Field Getting Errors if Value Not Unique

Avatar of NateR78
NateR78Flag for United States of America asked on
Microsoft SQL ServerMicrosoft SQL Server 2005
9 Comments2 Solutions324 ViewsLast Modified:
I'm not sure what I'm missing here, but I have a SQL server database that was converted from an Access database, and if I insert a record onto a certain table, I get errors if any records are created with duplicate data in a "storeNo" field.  I'm a bit new to SQL so I'm hoping it's just something I'm overlooking.

The field is not designated as a primary key, and I can't find anything in the field properties that would indicate there could be an issue with having two records with non-unique data in this field.

See the attached screenshot.  Ideas?
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 2 Answers and 9 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 9 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros