Click here to Skip to main content
15,886,518 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
what is Best method for check prevent duplicate entry in sql database with C# winform application. with sql store procedure code and winform button code.

What I have tried:

i will try in googling and show many video for this issue but confuse what is perfect method for prevent duplicate entry in sql database with C# winform. so please guide me.
Posted
Updated 7-Feb-23 18:54pm
Comments
Graeme_Grant 8-Feb-23 0:51am    
moved
PIEBALDconsult 8-Feb-23 8:33am    
Doing it the wrong way is never the best method.

1 solution

You use a unique ID & key fields usually and do data checks.

Here is a free course for learning databases: SQL and Relational Databases 101[^]. Take the time to do this or another course and learn the basics. This is a good investment in time that will save you countless hours of frustration.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900