My program allows users to view and edit their data online, and admins to download from/upload to my database from their desktop application. Problem is that while an admin is downloading/updating, a开发者_运维知识库nd for a while after (could be a minute, could be 30 minutes), I can't open SQL Management Studio on the server. Sometimes it won't let me open a table, other times I can't connect and it closes on me, and other times the application won't open at all.
Data can still be viewed/edited online and multiple admins can download/upload simultaneously, I just can't see the data on the server.
Today I just saw that my 2 new webpages that use Membership.GetAllUsers() and Roles.GetUsersInRole(roleName) don't work after the admin does stuff either. They get timeout errors.
Any ideas?
There are a number of things that you could check for.
- Lingering connections to SQL due to improperly closed connections from the client.
- Long running query processes, such as "Membership.GetAllUsers()" if you have a lot of users.
- Network IO limitations
- Locking on the tables from operations being completed by the administrators
- Low server resources, preventing you from getting CPU or RAM to run SSMS
could be a couple of reasons
A) you don't have enough CPU/RAM on the server to open up SSMS while this is being done, remember SQL Server will use all RAM it can grab for its cache
B) maybe a TABLOCK has been issued during the upload/update and then you won't be able to see data until completion of the import/update unless you use NOLOCK
精彩评论