Pk EmployeeiD Date Time
| 1 | Emp1001 | 5/8/2012 | 00:03:02 |
| 2 | Emp1001 | 5/9/2012 | 00:03:02 |
| 3 | Emp1001 | 5/10/2012 | 00:00:49 |
the above values are inserted successfully.....in their respective dates....
If a insert the above values again in the same table means
(ie..)Employeeid Date Time
Emp1001 5/9/2012 00:03:02
it will show some message like (Date Already Exists)....
Kunal VaishyaPosted May 15, 2012, 7:28 AM
V S N Raju KanumuriPosted May 15, 2012, 7:12 AM
write following code in insert button click
Anil KumarPosted May 15, 2012, 6:28 AM
http://www.c-sharpcorner.com/Forums/Thread/172373/values-already-exists-in-the-table.aspx
Please wait for answers
MohanRaj CPosted May 15, 2012, 1:17 AM
Posted May 15, 2012, 12:39 AM
Do you have unique constraints on date column or combination of date and empid columns?