This Blog is Focused on the most recurrent problem while developing ASP .net Application and SQL server as Data base backend with lots of T-SQl. Its all real world problems and their solution faced at the time of Development.
Friday, August 16, 2013
Unique Key Violation in SQL Server
if (ThisSqlException.Number == 2627)
{
// Handle unique constraint violation.
}
else
{
// Handle the remaing errors.
}