Image via CrunchBase"File sharing lock count exceeded…" error message during large transaction processing
Things improved but the error kept coming up. It turns out that the code was running faster than the SQL could be ran. So I put pauses for 30 seconds to make the software to wait for the SQL statements to finish.
System.Threading.Thread.Sleep(30000)
Much better. But i think encasing my SQL in Transactions might be a better way to go. Here is what I will use if I end up using Transactions.

No comments:
Post a Comment