Does SQL run into trouble with frequent reads to a table (the allocated or sold table) while reading another table (inventory lot table)?
No, SQL Server is your obedient slave. The one who will run into trouble is you, because you have an incorrect design.
When you want to read data from SQL Server, you should try to read all in a single access. If your pattern is to call back to SQL Server for every row you receive, all sorts of bad things can happen:
- The query your repeat is a little slow - but this results in very slow, when you are repeating it.
- Your network connection is slow.
- Your network connection has high bandwidth, but has high latency (common in the days of the cloud).
When you repeat the same thing again and again, small things of overhead starts to cost.
So you should retrieve all data you need in a single call. You should also retrieve it in a DataSet or similar. You should need row by row and perform a lot of actions for every row. You will keep the rows locked in SQL Server, which could have repercussions.
Or you should put your computation in a stored procedure and only return the result you need.