记一次查询超时的解决方案The timeout period elapsed......

https://www.cnblogs.com/wyt007/p/9274613.html

Exception has been thrown by the target of an invocation

Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding.
语句已终止。

问题描述

在数据库中执行查询语句,大约1秒钟查询出来,在C#中用ado进行连接查询,一直等待很久未查出结果,最后抛出查询超时异常。

异常内容如下:

Execution Timeout Expired.  The timeout period elapsed prior to completion of the operation or the server is not responding.

解决方案:

exec sp_updatestats

执行结果:

参考文章:

https://stackoverflow.com/questions/8602395/timeout-expired-the-timeout-period-elapsed-prior-to-completion-of-the-operation

https://docs.microsoft.com/zh-cn/sql/t-sql/statements/update-statistics-transact-sql?view=sql-server-2017

最新文章

  1. CODESOFT 2015中的二维码该怎样生成
  2. eclipse与myeclipse工程互转
  3. hibernate generator class="" id详解
  4. 深入浅出—JAVA(4)
  5. 一个用js写的接口http调试程序
  6. The JSR-133 Cookbook for Compiler Writers(an unofficial guide to implementing the new JMM)
  7. logstash 输出到elasticsearch 自动建立index
  8. ehcache memcache redis 三大缓存对比
  9. 微信小程序UI组件、开发框架、实用库...
  10. 对.NET Core未来发展趋势的浅层判断
  11. RPC REST 比较
  12. Confluence 6 home 目录
  13. git pull 冲突拉取不到新的代码
  14. Linux系统挂载新磁盘
  15. 怎么使用JavaScript进行进制转换
  16. 使用PHPMailer 中的报错解决 "Connection failed. Error #2: stream_socket_client(): SSL operation failed with code 1. OpenSSL Error messages:"
  17. 百度地图VUE-REACT
  18. Spring Batch 批处理框架介绍
  19. HDU 3435 A new Graph Game(最小费用流:有向环权值最小覆盖)
  20. NOIP Day1总结

热门文章

  1. ASP.NET Core使用MongoDB数据库
  2. Laravel是怎样防止你的定时任务重复执行的
  3. Spring Boot2(八):性感banner,在线发牌
  4. 英语cowbezoar牛黄cowbezoar单词
  5. <Android Studio> 3.打包APK
  6. django logger转载
  7. Linux文件服务管理之Samba
  8. Python 实现两个矩形重合面积
  9. 部署ceph存储集群及块设备测试
  10. django rest framework 解析器组件 接口设计,视图组件 (2)