This code results in an error
System.OutOfMemoryException
Using VT As New BidiEntities
For Each dr In Bidis
Dim hkBidi As New hkBidi
hkBidi.UserId = Userx
VT.AddTohkBidis(hkBidi)
Next
*VT.SaveChanges()*
End Using
VT.SaveChanges() results in this error when looping through 500,000 records.
How can this be resolved?
I thought this method. competent_tech and p.campbell thanks! 🙂
–