为什么我的用户编辑数据后无法打开 SQL Management Studio
我的程序允许用户在线查看和编辑他们的数据,管理员可以从他们的桌面应用程序下载/上传到我的数据库。问题是,当管理员下载/更新时,以及之后的一段时间(可能是一分钟,可能是 30 分钟),我无法在服务器上打开 SQL Management Studio。有时它不允许我打开表格,有时我无法连接并且它会关闭,有时应用程序根本无法打开。
数据仍然可以在线查看/编辑,多个管理员可以同时下载/上传,我只是看不到服务器上的数据。
今天我刚刚看到我的 2 个使用 Membership.GetAllUsers() 和 Roles.GetUsersInRole(roleName) 的新网页在管理员执行操作后也不起作用。他们收到超时错误。
有什么想法吗?
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, and 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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以检查很多事情。
There are a number of things that you could check for.
可能有几个原因
A) 在执行此操作时,服务器上没有足够的 CPU/RAM 来打开 SSMS,请记住 SQL Server 将使用它可以获取的所有 RAM 作为其缓存
B) 也许 TABLOCK 已被占用在上传/更新期间发出,然后在导入/更新完成之前您将无法看到数据,除非您使用 NOLOCK
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