| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 794 人关注过本帖
标题:asp+sql server2000问题(cpu利用率为100%)?
取消只看楼主 加入收藏
traitor_bai
Rank: 1
等 级:新手上路
帖 子:3
专家分:0
注 册:2006-9-27
收藏
 问题点数:0 回复次数:1 
asp+sql server2000问题(cpu利用率为100%)?
当用asp编写的软件查询报表时,cpu利用率为100%,请教如何解决?
搜索更多相关主题的帖子: cpu利用率 sql asp 软件 编写 
2006-09-27 15:30
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.027863 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved