超时错误 - - 在将sql 2008 db恢复到sql 2012之后 [英] Timeout error - - after restored sql 2008 db to sql 2012

查看:94
本文介绍了超时错误 - - 在将sql 2008 db恢复到sql 2012之后的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

以下是错误消息:



超时已过期。在操作完成之前经过了超时时间或服务器没有响应。





几天前,我迁移了我们的服务器,旧的服务器使用IIS 7 + Sql Server 2008 R2



新服务器:IIS 7 + Sql Server 2012



之后,当我连接到Sql Server 2012时,会出现一些报告或函数TimeOut Error,



但是我切换到Sql Server 2008.



我在系统配置中设置1小时超时。它仍然是同样的错误。



是否有Sql Server 2012的任何设置?任何人都可以帮助我!!

解决方案

此错误的原因很多。检查这些



肮脏的方式

增加 SQL连接 [ ^ ]

增加SQL命令 [ ^ ]。



好方法

使用 SQL Server Profiler [ ^ ]

如何通过分析Profiler输出来识别SQL Server性能问题? [ ^ ]

SQL Server最佳实践 [ ^ ]



优化数据库

在SQL Server中优化数据访问的十大步骤:第一部分(使用索引) [ ^ ]

优化SQL Server数据访问的十大步骤:第二部分(重新考虑TSQL并应用最佳实践) [ ^ ]

在SQL Server中优化数据访问的十大步骤:第III部分(应用高级索引和非规范化) [ ^ ]

前10名在SQL Server中优化数据访问的步骤:第IV部分(诊断数据库性能问题) [ ^ ]

优化的十大步骤SQL Server中的数据访问:第V部分(优化数据库文件并应用分区) [ ^ ]

您的连接字符串是否已更改?超时需要多长时间?什么是确切的错误?



我会通过连接字符串增加超时,看看会发生什么。


Below is the error message:

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



Few days ago, I migrated our server, old server use IIS 7 + Sql Server 2008 R2

new Server: IIS 7 + Sql Server 2012

after that, When I connect to Sql Server 2012 , some reports or functions occurs TimeOut Error,

But I switch to Sql Server 2008.

And I set 1hour for timeout in system's config. It still the same error.

Is there any settings for the Sql Server 2012? Can anyone help me!!

解决方案

Many reasons for this error. Check these

Dirty ways
Increase timeout for SQL connection[^]
Increase timeout for SQL command[^].

Good ways
Use SQL Server Profiler[^]
How to identify SQL Server performance issues, by analyzing Profiler output?[^]
SQL Server Best Practices[^]

Optimize the database
Top 10 steps to optimize data access in SQL Server: Part I (use indexing)[^]
Top 10 steps to optimize data access in SQL Server: Part II (Re-factor TSQL and apply best practices)[^]
Top 10 steps to optimize data access in SQL Server: Part III (Apply advanced indexing and denormalization)[^]
Top 10 steps to optimize data access in SQL Server: Part IV (Diagnose database performance problems)[^]
Top 10 steps to optimize data access in SQL Server: Part V (Optimize database files and apply partitioning)[^]


Has your connection string changed ? How long does it take to time out ? What's the exact error ?

I'd increase the timeout via the connection string and see what happens then.


这篇关于超时错误 - - 在将sql 2008 db恢复到sql 2012之后的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆