title: Which Error Code is return in SQL Server when inserting duplicate value in primary key column (table)
body: <p>Which Error Code is return in SQL Server when inserting duplicate value in primary key column (table) </p>
  
  <pre><code>  try
       {
           dataAdapterObj = new  SqlDataAdapter(selectString, conObj);
           return true;
       }
       catch (Exception e)
       {
           MessageBox.Show("Exception is : " + e.ToString());
           return false;
       }
  </code></pre>