简单查询在之前正常运行时变得非常缓慢。

huangapple go评论65阅读模式
英文:

Simple query is very slow which was working fine before

问题

我的SQL Server(使用ASP.NET和C#,甚至使用SSMS)突然变得非常慢。之前它一直正常工作。

例如,在SSMS中,这个简单的查询需要14秒

SELECT COUNT(*)
FROM AllAppointments

表“AllAppointments”具有非常简单的结构,包含7列,只有大约55,000行。这个查询在SSMS中以前几乎不需要时间,现在需要14秒。

可能的原因是什么?如何找到问题并如何修复?

英文:

My SQL Server (using ASP.NET and C#, or even using SSMS) is very slow all of a sudden. It was working fine before.

For example, this simple query (in SSMS) is taking 14 seconds

SELECT COUNT(*) 
FROM AllAppointments

Table AllAppointments has a very simple structure with 7 columns, and only about 55'000 rows. This query was taking no time at all in SSMS and now it takes 14 seconds.

What can be the reason? How to find and how to fix?

答案1

得分: 0

针对访问此链接以寻找相同或类似问题的人。
这是对我的服务器上一个数据库的垃圾邮件机器人攻击,导致服务器变慢。一旦我解决了这个问题,一切都恢复正常。

英文:

For people coming to this link looking for same or similar issue.
It was a Spam Bot attack to one of the DB on my server which had slowed down the server. Once I fixed the issue everything got normal.

huangapple
  • 本文由 发表于 2023年2月27日 19:26:31
  • 转载请务必保留本文链接:https://go.coder-hub.com/75579861.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定