简体   繁体   English

在sql server 2008中从C#中选择,在Windows Server 2003中太慢了:(

[英]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.

相关问题 使用C#向Windows Server 2003/2008中的防火墙添加例外 - Adding exception to firewall in Windows Server 2003/2008 using C# 在C#2008中将数据从DataGridView保存到Sql Server 2008需要太多时间 - To save data from DataGridView to Sql Server 2008 in C# 2008 takes too much time 从Windows Server 2008访问Windows Server 2003共享文件夹 - Access windows server 2003 share folder from windows server 2008 从 C# 连接到 SQL Server 2008 - Connect to SQL Server 2008 from C# Windows Server 2003上的C#SocketAsyncEventArgs问题 - C# SocketAsyncEventArgs Issue on Windows Server 2003 使用在 Windows Server 2008 上运行的 C# 在 Exchange 2003 中创建邮箱 - Create mailbox in Exchange 2003 using C# running on Windows Server 2008 C#:如何从另一台局域网计算机和Windows身份验证连接到SQL Server 2008 Express? - C#: how to connect to sql server 2008 express from another lan computer and windows authentication? 如何在C#中将图像从SQL Server 2008 R2检索到Datagridview [Windows应用程序] - How to retrieve image from SQL Server 2008 R2 to Datagridview in C# [Windows Application] 如何授予SQL Server 2008数据库从C#Windows应用程序中的客户端系统插入数据的权限? - How to give the permissions to sql server 2008 database to insert the data from client system in c# windows application? Windows Server 2003到2008 sslstream没有通用算法 - Windows Server 2003 to 2008 sslstream No Common Algorithm
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM