您的位置:首页 > 其它

如何得到MOSS 2007的最近的100次爬网的信息

2010-11-09 18:55 204 查看
在SharePoint中Shared Service的Search DB上运行下面的查询语句.

select top 100
h.crawlid,
c.catalogid,
c.contentsourceid,
c.startaddressid,
typeofcrawl=
case h.crawltype
when 1 then 'full crawl'
when 2 then 'incremental crawl'
end,
h.status as status_id,
status=
case h.status
when 4 then 'start'
when 9 then 'pause'
when 10 then 'resume'
when 13 then 'stop'
when 11 then 'done'
else 'other'
end,
h.requesttime,
h.starttime,
h.endtime,
datediff(n, h.starttime, h.endtime) as 'duration'
from msscrawlhistory h left join
msscrawlcontent c on h.crawlid=c.crawlid
where h.projectid=1 order by h.requesttime desc
-- projectid=1 portal_content
-- projectid=2 anchorproject
-- projectid=3 profileimport
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: