Thread: Chartfx??
View Single Post
Old 27.03.2005, 13:34   #18
Digital
Архивный участник
 
Join Date: Nov 2004
Posts: 1,405
Default

為什麼l2admin統計不能正常運作?

是因為在lin2report沒有正常的作成logfile ,原因是default setting 停用了的它功
. 以下的想法可能有錯:
lin2report的自動生成原來不是在logd.exeè¨ ­的,因為找了很久也找不到
可能是在lsever.ini中
[Report]
Interval=10 ;minute
如果你的電腦性能不大好,就把它設改ä ¸€下.
以下也是推測它的運作方法是
lserver.exe -> lin2report 中的 dbo.linMakeReport 再excute
dbo.lin_ProcessLog

因為dbo.lin_processlog沒有在lin2report.作成 dailylog
所以要把"dbo.linMakeReport" 改一下
改前千萬不要忘記backup

在lin2report中打開了dbo.linMakeReport你會çœ ‹到
ALTER PROCEDURE [DBO].[lin_MakeReport]
/*
@report_date datetime ,
@report_world int = 1
*/
AS
SET NOCOUNT ON

declare @report_date datetime
declare @report_world tinyint

SET @report_date = dateadd(d, -1, getdate())
SET @report_world = 1


exec lin_ProcessLog @report_date, @report_world

把這句
exec lin_ProcessLog @report_date, @report_world

改為exec lin_ProcessLog2 @report_date, @report_world
之後執行


它會在lin2report生成很多的table
我的server只有一個人login沒有開npc.便è¦ �花6分鐘時間.
而且花了很多硬碟空間

以上是手動生成列表的方法
在lin2report中有了這些列表,l2admin的統è¨ ˆ便能正常運作


後話:
如果把改為 exec lin_ProcessLog3 @report_date, @report_world
或是 exec lin_ProcessLogNew @report_date, @report_world
會有很多bug. 因為學習sql script只有 二天,還不能debug
希望有高手出來相助 lin_ProcessLog3和 lin_ProcessLogNew有什麼問題
Digital is offline