title: How to set IDENTITY_INSERT on or off at runtime using Linq-to-SQL in VB.NET?
body: <p>How to turn <code>IDENTITY_INSERT</code> on or off at runtime using Linq-to-SQL in VB.NET?</p>
  
  <p>I want to insert new rows using specific id, but the <code>id</code> column of my table is an identity column. </p>
  
  <p>So I want to turn on <code>IDENTITY_INSERT</code> before inserting the row, and turn it back off after the insert.</p>
  
  <p>I used Linq-to-SQL, is their is any way to achieve this using vb.net?</p>