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
SUNIL GUTTA
NA
1k
393.2k
Primary key duplication ? using ADO.net
Oct 9 2013 3:55 AM
Hi
Well i tried to insert records into DB from created web-form . I used string.format(insert statement ) & Data reader :)
Initially 1st insert is going successfully but second insert popping some dam error like below
Violation of PRIMARY KEY constraint 'PK_studentform'. Cannot insert duplicate key in object 'dbo.studentform'.
The statement has been terminated.
I maintained uniqueness in Pk column but why am i facing this ??
Please help me
Reply
Answers (
10
)
how to deliver bug free application to clint 2013
How to validate the textbox allow only numeric and dot using