| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 794 人关注过本帖
标题:asp+sql server2000问题(cpu利用率为100%)?
只看楼主 加入收藏
traitor_bai
Rank: 1
等 级:新手上路
帖 子:3
专家分:0
注 册:2006-9-27
收藏
 问题点数:0 回复次数:4 
asp+sql server2000问题(cpu利用率为100%)?
当用asp编写的软件查询报表时,cpu利用率为100%,请教如何解决?
搜索更多相关主题的帖子: cpu利用率 sql asp 软件 编写 
2006-09-27 15:30
hangxj
Rank: 6Rank: 6
等 级:贵宾
威 望:29
帖 子:2045
专家分:0
注 册:2006-4-10
收藏
得分:0 
看代码?

http://www./
2006-09-27 15:38
islet
Rank: 12Rank: 12Rank: 12
等 级:贵宾
威 望:89
帖 子:6548
专家分:0
注 册:2005-1-28
收藏
得分:0 
机器配置太滥了吧
2006-09-27 15:51
开心人
Rank: 1
等 级:新手上路
帖 子:216
专家分:0
注 册:2005-11-1
收藏
得分:0 
以下是引用hangxj在2006-9-27 15:38:45的发言:
看代码?

正解。。。。。。。。。。。。。。。。。。。。


2006-09-28 16:16
traitor_bai
Rank: 1
等 级:新手上路
帖 子:3
专家分:0
注 册:2006-9-27
收藏
得分:0 
查询报表时的关键代码:SELECT dbo.ChargeAccountingLog.PrecinctID,
dbo.Precinct.PrecinctName,
dbo.ChargeAccountingLog.BuildingID,
dbo.Building.BuildingName,
dbo.ChargeAccountingLog.FloorID, dbo.Floor.FloorName,
dbo.ChargeAccountingLog.RoomID,
dbo.ChargeAccountingMaster.MasterName,
dbo.ChargeAccountingLog.ChargeYear,
dbo.ChargeAccountingLog.ChargeMonth,
dbo.GeneralCode.Code, dbo.GeneralCode.Description,
ISNULL(dbo.ChargeAccountingLog.EmployeeID, '空') AS aa,
ISNULL(dbo.Employee.EmployeeName, '空') AS bb,
dbo.ChargeAccountingLog.PaymentPay AS vv
FROM dbo.ChargeAccountingLog INNER JOIN
dbo.Floor ON dbo.ChargeAccountingLog.PrecinctID = dbo.Floor.PrecinctID AND
dbo.ChargeAccountingLog.BuildingID = dbo.Floor.BuildingID AND
dbo.ChargeAccountingLog.FloorID = dbo.Floor.FloorID INNER JOIN
dbo.Building ON dbo.Floor.PrecinctID = dbo.Building.PrecinctID AND
dbo.Floor.BuildingID = dbo.Building.BuildingID INNER JOIN
dbo.Precinct ON dbo.Building.PrecinctID = dbo.Precinct.PrecinctID INNER JOIN
dbo.GeneralCode ON
dbo.ChargeAccountingLog.ChargeID = dbo.GeneralCode.FriendKeyID INNER JOIN
dbo.ChargeAccountingMaster ON
dbo.ChargeAccountingLog.PrecinctID = dbo.ChargeAccountingMaster.PrecinctID AND
dbo.ChargeAccountingLog.BuildingID = dbo.ChargeAccountingMaster.BuildingID AND
dbo.ChargeAccountingLog.RoomID = dbo.ChargeAccountingMaster.RoomID AND
dbo.ChargeAccountingLog.FloorID = dbo.ChargeAccountingMaster.FloorID AND
dbo.ChargeAccountingLog.ChargeYear = dbo.ChargeAccountingMaster.ChargeYear AND
dbo.ChargeAccountingLog.ChargeMonth = dbo.ChargeAccountingMaster.ChargeMonth LEFT
OUTER JOIN
dbo.Employee ON
dbo.ChargeAccountingLog.EmployeeID = dbo.Employee.EmployeeID
机器的配置是浪潮的服务器 软件和数据库在一台机器上,并且在其他的品牌的服务器也是这样。
2006-09-30 14:14
快速回复:asp+sql server2000问题(cpu利用率为100%)?
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.047678 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved