0
I am new to C# and SQL Server, I need help to build something that for you is simple for sure. In my database has id, name and CPF. The Key is the ID and it goes automatically, but I also didn’t want to let the number repeat itself. how to build a private bool by making a select in the database prohibiting the insertion of repeated data? Parlance: C# BD: Sqlserver
Creating a UNIQUE constraint in the CPF field is not enough?
– anonimo
No no, if you create a Unique the system in C# returns nothing
– Wander França
??? How to return? A UNIQUE constraint will not allow a record with the same existing CPF to be included in another table record.
– anonimo