起步软件技术论坛-X3

 找回密码
 立即注册
搜索
查看: 370|回复: 4

求助:sql执行超时

[复制链接]
发表于 2007-1-23 10:28:42 | 显示全部楼层 |阅读模式
在执行功能是报以下错误:

取数据的时候出现错误:Lock time out.
SQL Server 连接超时。
连接参数:数据库URL:Biz:\SYSTEM\SYSTEM.Database
SQL语句:select 0 as FILEINDEX, A.*,  (select COUNT(FGUID) from TORGSYSTEM where FPARENTGUID = A.FGUID  and FDELETELEVEL = 0) AS CHILDRENCOUNT from TORGSYSTEM A  where FGUID IN (SELECT FGUID FROM TORGSYSTEM WHERE (FGUID IN (SELECT b.FGUID FROM TORGSYSTEM a, TORGSYSTEM b WHERE a.FGUID IN (SELECT FGUID FROM TORGSYSTEM WHERE FGUID IN (SELECT FGUID FROM TORGSYSTEM WHERE (FDEPT = 'F08') and (FPOSITION = '' or FPOSITION is null) and (FPERSON = '' or FPERSON is null)) OR FGUID IN (SELECT FGUID FROM TORGSYSTEM WHERE (FDEPT = 'E04') and (FPOSITION = '' or FPOSITION is null) and (FPERSON = '' or FPERSON is null)) OR FGUID IN (SELECT FGUID FROM TORGSYSTEM WHERE (FDEPT = 'A07') and (FPOSITION = '' or FPOSITION is null) and (FPERSON = '' or FPERSON is null)))  AND ((( (b.FPATH LIKE a.FPATH + a.FID + a.FKIND + '\%') OR ((a.FKIND = '.PTN') AND ((b.FID = a.FID AND b.FKIND = '.PTM') OR (b.FPATH + b.FID + b.FKIND  LIKE '%\' + a.FID + '.PTM' + '\%'))) ) OR ( a.FPATH + a.FID + a.FKIND = b.FPATH + b.FID + b.FKIND )))) AND FGUID IN (SELECT b.FGUID FROM TORGSYSTEM a, TORGSYSTEM b WHERE a.FGUID IN (SELECT FGUID FROM TORGSYSTEM WHERE FGUID IN (SELECT FGUID FROM TORGINDEX WHERE FGUID in (select FGUID from TORGINDEX where FID = 'ORGUNIT.FUNCREF' and FVALUE = '\SZXX\FUNC\EJJSYWGN.FUNC')))  AND b.FGUID IN (SELECT FGUID FROM TORGSYSTEM WHERE FGUID IN (SELECT FGUID FROM TORGSYSTEM WHERE  (FFILENAME LIKE '%.PTM') ))  AND ((( (b.FPATH LIKE a.FPATH + a.FID + a.FKIND + '\%') OR ((a.FKIND = '.PTN') AND ((b.FID = a.FID AND b.FKIND = '.PTM') OR (b.FPATH + b.FID + b.FKIND  LIKE '%\' + a.FID + '.PTM' + '\%'))) ) OR ( a.FPATH + a.FID + a.FKIND = b.FPATH + b.FID + b.FKIND )))) and FDELETELEVEL = 0) AND (FDELETELEVEL = 0))

怀疑是系统组织机构相关表的问题,用doctor修复时,doctor无响应。

system.rar

1.93 MB, 下载次数: 99

回复

使用道具 举报

 楼主| 发表于 2007-1-23 10:29:59 | 显示全部楼层
附件为组织机构相关的7个表的数据
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-1-23 10:31:27 | 显示全部楼层
报错信息

error.txt

1.78 KB, 下载次数: 96

回复 支持 反对

使用道具 举报

发表于 2007-1-24 10:59:35 | 显示全部楼层
正在分析,有结果马上跟贴告知,感觉是跟数据有关,
回复 支持 反对

使用道具 举报

发表于 2007-2-7 09:37:22 | 显示全部楼层
经过测试,我们这里是正常的,这需要楼主检查数据库了。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|手机版|Justep Inc.

GMT+8, 2024-12-24 20:45 , Processed in 0.040199 second(s), 19 queries .

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表