TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
David Smith
NA
2k
0
Primary Key Violation
Oct 11 2017 3:39 PM
I cannot insert record because of primary violation, which is find. However I want to update record if the primary or record is duplicate. So how to check if record is duplicate with this table having 4 primary keys? Can someone assist me on how to tackle this. There are four fields that are primary keys in this table.
The goal is to update record is exist, add record if it doesn't exist. Primary keys are mary below.
this.data.Color.Objects.Add(
new ControlObject()
{
COLOR_ID= colorId, //primary key
COLOR_OBJNAM = colorName, //primary key
COLOR_Key = colorKey, //primary key
COLOR_REVISION = colorRevision, //primary key
Value = value
}
);
Reply
Answers (
4
)
Handle reading multiple barcode from multiple barcode device
Validating Datagridview in a form.