查询执行时间因系统而异,MS SQL Server中的服务器与服务器不同 [英] Query execution time varies from system to system and server to server in MS SQL Server

查看:67
本文介绍了查询执行时间因系统而异,MS SQL Server中的服务器与服务器不同的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好。



当我在MS SQL Server 2012上的系统中执行选择查询时,只需1秒,当我在一个上执行相同的查询时MS SQL Server 2012上的另一个系统需要超过70秒



i无法找到发生这种情况的确切原因?



你可以帮我解决这个问题吗?MS SQL Server 2012管理工作室中是否有任何设置用于查询执行

解决方案

真的可以预料到,因为在硬件,服务器使用,索引和加载方面存在差异。



尝试在数据库上运行探查器和索引调整向导以优化事物。


使用搜索框 [ ^ ]位于此站点的右上角。有大量的问题和答案以及文章...



这里有一些有用的链接:

如何解决SQL Server性能问题 [ ^ ]

第14章 - 改进SQL Server性能 [ ^ ]

如何:使用SQL Server排查应用程序性能 [ ^ ]

性能调优技巧 [ ^ ]

Hi All.

When i execute a select query in my system on MS SQL Server 2012 it takes only 1 sec and when i execute the same query on one another system on MS SQL Server 2012 it takes more than 70 sec

i am unable to find the exact reason why this happen?

can you please help me to solve this problem Is there any setting in MS SQL Server 2012 Management studio for query execution

解决方案

To be expected really, since there are differences in hardware, server use, indexing and load.

Try running the profiler and index tuning wizard on your databases to optimize things.


Search CP Knowledge Base using Search Box[^] on the top-right corner of this site. There are tons of questions and answers and articles...

Here is a few useful links:
How to troubleshoot SQL Server performance issues[^]
Chapter 14 — Improving SQL Server Performance[^]
HOW TO: Troubleshoot Application Performance with SQL Server[^]
Performance Tuning Tips[^]


这篇关于查询执行时间因系统而异,MS SQL Server中的服务器与服务器不同的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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