[英]Select from C# in sql server 2008 too slow in windows server 2003 :(
I've a soft in C# connected it whith sql server 2008. There are some reports created by crystal report. 我在C#中通过sql server 2008将其连接到C#。通过Crystal Report创建了一些报告。 When I execute my soft in windows XP and sql server is installed at the same windows it runs very fast it takes up to 3 seconds to select and fill report. 当我在Windows XP中执行软件并在同一Windows上安装sql server时,它运行速度非常快,最多需要3秒钟来选择和填写报告。 But when I execute it in windows 2003 and sql server is installed in the same windows (I mean win 2003) it takes up to 40 seconds to execute the query and 2 second to fill the report. 但是,当我在Windows 2003中执行它并将sql server安装在相同的Windows中(我的意思是win 2003)时,执行查询最多需要40秒,而填写报告则需要2秒。 I unintalled and installed sql server 2008 twice but the same problem :(. 我没有安装并两次安装sql server 2008,但存在相同的问题:(。
Why it is so slow ??????????????? 为什么这么慢???????????????
Thnx n
I'm presuming that the windows 2003 server is a better machine then your windows xp computer. 我假设Windows 2003 Server比Windows XP计算机是更好的机器。 How are you installing the database to the server? 您如何将数据库安装到服务器? I'm guessing you are missing the indexes on server side. 我猜您在服务器端缺少索引。
If not, maybe you could post the sql statement that is executed. 如果没有,也许您可以发布执行的sql语句。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.