Jump to content
  • 0

cant connect to log server


supersam999

Question

Hi i made conf l2off server with PyroMaker guide and i have this error when i launch cacheD . Does anyone knows what happend , and what should I do ? Thanks very much for reply. Cheers :)

Link to comment
Share on other sites

6 answers to this question

Recommended Posts

  • 0

I found sth, till the lines script works, after this he's ded , What have I do. How to make it manualy ? Can anyone help me with this problem ?

[glow=red,2,300]
-- Database  : lin2log

USE [lin2log]
GO

CREATE TABLE [dbo].[log_insert] (
  [log_file] nvarchar(255) COLLATE Korean_Wansung_CI_AS NOT NULL,
  [log_table] nvarchar(50) COLLATE Korean_Wansung_CI_AS NOT NULL,
  [rowsprocessed] int NOT NULL,
  [log_year] int NOT NULL,
  [log_month] int NOT NULL,
  [log_day] int NOT NULL,
  [log_hour] int NOT NULL,
  [log_ip] int NOT NULL,
  [log_svr] nvarchar(20) COLLATE Korean_Wansung_CI_AS NOT NULL,
  [log_inout] nvarchar(20) COLLATE Korean_Wansung_CI_AS NOT NULL,
  [process_time] int NULL,
  [inserted] int NULL
)
ON [PRIMARY]
GO
[/glow]

------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------
[move]<!-- Till this place script run well, after this he is ded , i looked into database -->[/move]
------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------



CREATE PROCEDURE [dbo].[lin_BulkInsert]

AS
SELECT 0
GO

CREATE PROCEDURE [dbo].[lin_CheckLogTimeTable2]

AS
SELECT 0
GO

CREATE PROCEDURE [dbo].[lin_DropLogTable]

AS
SELECT 0
GO

CREATE PROCEDURE [dbo].[lin_GetWorldSnap]

AS
SELECT 0
GO

CREATE PROCEDURE [dbo].[lin_MakeChatLogTable]

AS
SELECT 0
GO

CREATE PROCEDURE [dbo].[lin_MakeItemLogTable]

AS
SELECT 0
GO

CREATE PROCEDURE [dbo].[lin_MakeLogTable]

AS
SELECT 0
GO

CREATE PROCEDURE [dbo].[lin_SetInserted]

AS
SELECT 0
GO

ALTER PROCEDURE dbo.lin_BulkInsert 
(
@log_table	varchar(512),
@log_file	varchar(128)
)
AS

set nocount on

declare @sql varchar(1024)

set @sql = ' set nocount on'
+ ' BULK INSERT ' + @log_table + ' FROM ''' + @log_file + ''' WITH ( MAXERRORS = 65535, FIELDTERMINATOR = '','',  ROWTERMINATOR = ''\n'' ) '
+ ' select @@ROWCOUNT  ' 
exec ( @sql )
GO

/********************************************
lin_CheckLogTimeTable2
do check whether real time log table is exist or not
INPUT
@strDate varchar(16),
@nWorld  int
OUTPUT

return
made by
young
date
2002-11-11
********************************************/
ALTER PROCEDURE [DBO].[lin_CheckLogTimeTable2]
(
@strDate varchar(16),
@nWorld  int
)
AS
SET NOCOUNT ON

declare @table_name varchar(60)
declare @table2_name varchar(60)
declare @view_name varchar(60)
declare @sql varchar(2048)

-- check log_realtime
set @table_name = @strDate + 'log_realtime_' + cast (@nWorld as varchar)
set @sql = 'select * from sysobjects (nolock) where name = '''+ @table_name + ''''

exec ( @sql)
if ( @@ROWCOUNT = 0) 
begin
set @sql = 'exec lin_MakeLogTable ''' + @table_name + ''''
exec (@sql)
end

-- check log_audit
set @table_name = @strDate + 'log_audit_' + cast (@nWorld as varchar)
set @sql = 'select * from sysobjects (nolock) where name = '''+ @table_name + ''''
exec ( @sql)
if ( @@ROWCOUNT = 0) 
begin
set @sql = 'exec lin_MakeLogTable ''' + @table_name + ''''
exec (@sql)
end

-- check log_data ( store 0~12 hour log)
set @table_name = @strDate + 'log_data_' + cast (@nWorld as varchar)
set @sql = 'select * from sysobjects (nolock) where name = '''+ @table_name + ''''
exec ( @sql)
if ( @@ROWCOUNT = 0) 
begin
set @sql = 'exec lin_MakeLogTable ''' + @table_name + ''''
exec (@sql)
end

-- check log_data2 ( store 12~24 hour log)
set @table2_name = @strDate + 'log_data2_' + cast (@nWorld as varchar)
set @sql = 'select * from sysobjects (nolock) where name = '''+ @table2_name + ''''
exec ( @sql)
if ( @@ROWCOUNT = 0) 
begin
set @sql = 'exec lin_MakeLogTable ''' + @table2_name + ''''
exec (@sql)
end

-- check log_data0 ( view )
set @view_name = @strDate + 'log_data0_' + cast (@nWorld as varchar)
set @sql = 'select * from sysobjects (nolock) where name = '''+ @view_name + ''''
exec ( @sql)
if ( @@ROWCOUNT = 0) 
begin
--	set @sql = 'exec lin_MakeLogTable ''' + @table_name + ''''
set @sql = 'CREATE VIEW dbo.' + @view_name + '  ( ' 
	+ ' act_time,  log_id, actor, actor_account, target, target_account, location_x, location_y, location_z, ' 
	+ 'etc_str1, etc_str2, etc_str3,  ' 
	+ 'etc_num1, etc_num2, etc_num3, etc_num4, etc_num5, etc_num6, etc_num7, etc_num8, etc_num9, etc_num10, ' 
	+ 'STR_actor, STR_actor_account, STR_target, STR_target_account, item_id ' 
	+ ' ) AS ' 
	+ ' SELECT  act_time,  log_id, actor, actor_account, target, target_account, location_x, location_y, location_z, '
	+ ' etc_str1, etc_str2, etc_str3,  ' 
	+ ' etc_num1, etc_num2, etc_num3, etc_num4, etc_num5, etc_num6, etc_num7, etc_num8, etc_num9, etc_num10, '
	+ ' STR_actor, STR_actor_account, STR_target, STR_target_account, item_id ' 
	+ ' from   ' + @table_name  + '  (nolock) UNION '
	+ ' SELECT  act_time,  log_id, actor, actor_account, target, target_account, location_x, location_y, location_z, '
	+ ' etc_str1, etc_str2, etc_str3,  '
	+ ' etc_num1, etc_num2, etc_num3, etc_num4, etc_num5, etc_num6, etc_num7, etc_num8, etc_num9, etc_num10, '
	+ ' STR_actor, STR_actor_account, STR_target, STR_target_account, item_id '
	+ ' from   ' + @table2_name + '  (nolock)  '
exec (@sql)
end

-- check chat 
set @table_name = @strDate + 'log_chat_' + cast (@nWorld as varchar)
set @sql = 'select * from sysobjects (nolock) where name = '''+ @table_name + ''''
exec ( @sql)
if ( @@ROWCOUNT = 0) 
begin
set @sql = 'exec lin_MakeChatLogTable ''' + @table_name + ''''
exec (@sql)
end
GO

ALTER PROCEDURE dbo.lin_DropLogTable
@drop_date	datetime,
@drop_world	int
AS

if @drop_date is null
begin
set @drop_date = getdate()
set @drop_date = dateadd(d, -4, getdate())
end

DECLARE @nyear int
DECLARE @nmonth int
DECLARE @nday int
DECLARE @stryear varchar(10)
DECLARE @strmonth varchar(10)
DECLARE @strday varchar(10)
DECLARE @str_report varchar(32)
DECLARE @logdate int

set @nyear = datepart(yyyy, @drop_date)
set @nmonth = datepart(mm, @drop_date)
set @nday = datepart(dd, @drop_date)

set @stryear = cast(@nyear as varchar)
if @nmonth < 10
set @strmonth = '0' + cast(@nmonth as varchar)
else
set @strmonth = cast (@nmonth as varchar)

if @nday < 10
set @strday = '0' + cast(@nday as varchar)
else
set @strday = cast (@nday as varchar)	

set @str_report = @stryear + '/' + @strmonth + '/' + @strday
set @logdate = cast(@stryear + @strmonth + @strday as int)

------------- now.. we have year, month, day string
DECLARE @table_from varchar(60)
declare @sql varchar (1024)


set @table_from = 'L' + @stryear  + '_' + @strmonth + '_' + @strday + '_log_data0_' + cast ( @drop_world as varchar)
set @sql = ' drop view ' + @table_from

exec (@sql)


set @table_from = 'L' + @stryear  + '_' + @strmonth + '_' + @strday + '_log_data_' + cast ( @drop_world as varchar)
set @sql = ' drop table ' + @table_from

exec (@sql)


set @table_from = 'L' + @stryear  + '_' + @strmonth + '_' + @strday + '_log_data2_' + cast ( @drop_world as varchar)
set @sql = ' drop table ' + @table_from

exec (@sql)

/*
set @table_from = 'L' + @stryear  + '_' + @strmonth + '_' + @strday + '_log_chat_' + cast ( @drop_world as varchar)
set @sql = ' drop table ' + @table_from

exec (@sql)
*/
GO

/******************************************************************************
#Name:	lin_GetWorldSnap
#Desc:	do make snap shot table of user_data, user_item, pledge, user_nobless

#Argument:
Input:	@db_server	varchar(30)	server name
	@user_id	varchar(30)	login id
	@user_pass	varchar(30)	password
	@world_id	int		world id
	@dtnow		varchar(8)	yyyyMMdd
Output:	
#Return:
#Result Set:

#Remark:
#Example:	exec lin_GetWorldSnap 'l2db2', 'gamma', '********', 8
#See:

#History:
Create	flagoftiger	2004-06-14
Modify	btwinuni	2005-05-16	add: pledge
Modify	btwinuni	2005-09-29	add: user_nobless
Modify	btwinuni	2005-10-27	add parameter: dtnow
******************************************************************************/
ALTER PROCEDURE [DBO].[lin_GetWorldSnap]
@db_server	varchar(30),
@user_id	varchar(30),
@user_pass	varchar(30),
@world_id	int,
@dtnow		varchar(8) = ''
AS
SET NOCOUNT ON
SET ANSI_WARNINGS ON
SET ANSI_NULLS ON

declare @tmp_user_item nvarchar(50)
declare @tmp_user_data nvarchar(50)
declare @tmp_pledge nvarchar(50)
declare @tmp_user_nobless nvarchar(50)
declare @drop_user_item nvarchar(50)
declare @drop_user_data nvarchar(50)
declare @drop_pledge nvarchar(50)
declare @drop_user_nobless nvarchar(50)
declare @dtnow2 nvarchar(8)
declare @sql varchar(4000)

if @dtnow = ''
begin
set @dtnow = convert(varchar, getdate(), 112)
end

set @dtnow2 = convert(varchar, DATEADD(d, -2, cast(@dtnow as datetime)), 112)

-- set table name
set @tmp_user_item = 'S' + left(@dtnow,4) + '_' + substring(@dtnow,5,2) + '_' + right(@dtnow,2) + '_snap_item_' + cast(@world_id as varchar)
set @tmp_user_data = 'S' + left(@dtnow,4) + '_' + substring(@dtnow,5,2) + '_' + right(@dtnow,2) + '_snap_data_' + cast(@world_id as varchar)
set @tmp_pledge = 'S' + left(@dtnow,4) + '_' + substring(@dtnow,5,2) + '_' + right(@dtnow,2) + '_snap_pledge_' + cast(@world_id as varchar)
set @tmp_user_nobless = 'S' + left(@dtnow,4) + '_' + substring(@dtnow,5,2) + '_' + right(@dtnow,2) + '_snap_nobless_' + cast(@world_id as varchar)

-- set drop table name
set @drop_user_item = 'S' + left(@dtnow2,4) + '_' + substring(@dtnow2,5,2) + '_' + right(@dtnow2,2) + '_snap_item_' + cast(@world_id as varchar)
set @drop_user_data = 'S' + left(@dtnow2,4) + '_' + substring(@dtnow2,5,2) + '_' + right(@dtnow2,2) + '_snap_data_' + cast(@world_id as varchar)
set @drop_pledge = 'S' + left(@dtnow2,4) + '_' + substring(@dtnow2,5,2) + '_' + right(@dtnow2,2) + '_snap_pledge_' + cast(@world_id as varchar)
set @drop_user_nobless = 'S' + left(@dtnow2,4) + '_' + substring(@dtnow2,5,2) + '_' + right(@dtnow2,2) + '_snap_nobless_' + cast(@world_id as varchar)


--------------------------------------------------------------------------------------------------------------------------------------------
-- user_item snap shot
--------------------------------------------------------------------------------------------------------------------------------------------

-- check table whether @drop_user_item is exists or not
set @sql = 'if exists (select * from dbo.sysobjects where id = object_id(N''[dbo].[' + @drop_user_item + ']'') and objectproperty(id, N''IsUserTable'') = 1)'
+ ' begin'
+ ' drop table dbo.' + @drop_user_item
+ ' end'
exec (@sql)

-- check table whether @tmp_user_item is exists or not
set @sql = 'if exists (select * from dbo.sysobjects where id = object_id(N''[dbo].[' + @tmp_user_item + ']'') and objectproperty(id, N''IsUserTable'') = 1)'
+ ' begin'
+ ' drop table dbo.' + @tmp_user_item
+ ' end'
exec (@sql)


set @sql = ' select * into dbo.' + @tmp_user_item
+ ' from OPENROWSET ( ''SQLOLEDB'', ''' + @db_server + ''';''' + @user_id + ''';''' + @user_pass  + ''',  ''select * from lin2world.dbo.tmp_user_item (nolock) where char_id > 0 '') '
exec (@sql )

set @sql = 'CREATE CLUSTERED INDEX IX_' + @tmp_user_item + '_1 on dbo.' + @tmp_user_item + ' (char_id asc, item_type asc, enchant desc ) with fillfactor = 90 '
exec (@sql)
set @sql = 'CREATE NONCLUSTERED INDEX IX_' + @tmp_user_item + '_2 on dbo.' + @tmp_user_item + ' (item_type asc, enchant desc ) with fillfactor = 90 '
exec (@sql)



--------------------------------------------------------------------------------------------------------------------------------------------
-- user_data snap shot
--------------------------------------------------------------------------------------------------------------------------------------------

-- check table whether @drop_user_data is exists or not
set @sql = 'if exists (select * from dbo.sysobjects where id = object_id(N''[dbo].[' + @drop_user_data + ']'') and objectproperty(id, N''IsUserTable'') = 1)'
+ ' begin'
+ ' drop table dbo.' + @drop_user_data
+ ' end'
exec (@sql)

-- check table whether 'tmp_user_data' is exists or not
set @sql = 'if exists (select * from dbo.sysobjects where id = object_id(N''[dbo].[' + @tmp_user_data + ']'') and objectproperty(id, N''IsUserTable'') = 1)'
+ ' begin'
+ ' drop table dbo.' + @tmp_user_data
+ ' end'
exec (@sql)


set @sql = ' select * into dbo.' + @tmp_user_data
+ ' from OPENROWSET ( ''SQLOLEDB'', ''' + @db_server + ''';''' + @user_id + ''';''' + @user_pass  + ''',  ''select * from lin2world.dbo.tmp_user_data (nolock)'') '
exec (@sql )

set @sql = 'CREATE CLUSTERED INDEX IX_' + @tmp_user_data + '_1 on dbo.' + @tmp_user_data + ' (exp desc) with fillfactor = 90 '
exec (@sql )
set @sql = 'CREATE NONCLUSTERED INDEX IX_' + @tmp_user_data + '_2 on dbo.' + @tmp_user_data + ' (race asc, exp desc) with fillfactor = 90 '
exec (@sql )
set @sql = 'CREATE NONCLUSTERED INDEX IX_' + @tmp_user_data + '_3 on dbo.' + @tmp_user_data + ' (class asc, exp desc) with fillfactor = 90 '
exec (@sql )



--------------------------------------------------------------------------------------------------------------------------------------------
-- pledge snap shot
--------------------------------------------------------------------------------------------------------------------------------------------

-- check table whether @drop_pledge is exists or not
set @sql = 'if exists (select * from dbo.sysobjects where id = object_id(N''[dbo].[' + @drop_pledge + ']'') and objectproperty(id, N''IsUserTable'') = 1)'
+ ' begin'
+ ' drop table dbo.' + @drop_pledge
+ ' end'
exec (@sql)

-- check table whether '@tmp_pledge' is exists or not
set @sql = 'if exists (select * from dbo.sysobjects where id = object_id(N''[dbo].[' + @tmp_pledge + ']'') and objectproperty(id, N''IsUserTable'') = 1)'
+ ' begin'
+ ' drop table dbo.' + @tmp_pledge
+ ' end'
exec (@sql)


set @sql = ' select * into dbo.' + @tmp_pledge
+ ' from OPENROWSET ( ''SQLOLEDB'', ''' + @db_server + ''';''' + @user_id + ''';''' + @user_pass  + ''',  ''select * from lin2world.dbo.tmp_pledge (nolock)'') '
exec (@sql )

set @sql = 'CREATE CLUSTERED INDEX IX_' + @tmp_pledge + '_1 on dbo.' + @tmp_pledge + ' (pledge_id) with fillfactor = 90 '
exec (@sql )


--------------------------------------------------------------------------------------------------------------------------------------------
-- user_nobless snap shot
--------------------------------------------------------------------------------------------------------------------------------------------

-- check table whether @drop_user_nobless is exists or not
set @sql = 'if exists (select * from dbo.sysobjects where id = object_id(N''[dbo].[' + @drop_user_nobless + ']'') and objectproperty(id, N''IsUserTable'') = 1)'
+ ' begin'
+ ' drop table dbo.' + @drop_user_nobless
+ ' end'
exec (@sql)

-- check table whether '@tmp_user_nobless' is exists or not
set @sql = 'if exists (select * from dbo.sysobjects where id = object_id(N''[dbo].[' + @tmp_user_nobless + ']'') and objectproperty(id, N''IsUserTable'') = 1)'
+ ' begin'
+ ' drop table dbo.' + @tmp_user_nobless
+ ' end'
exec (@sql)


set @sql = ' select * into dbo.' + @tmp_user_nobless
+ ' from OPENROWSET ( ''SQLOLEDB'', ''' + @db_server + ''';''' + @user_id + ''';''' + @user_pass  + ''',  ''select * from lin2world.dbo.tmp_user_nobless (nolock)'') '
exec (@sql )

set @sql = 'CREATE CLUSTERED INDEX IX_' + @tmp_user_nobless + '_1 on dbo.' + @tmp_user_nobless + ' (char_id) with fillfactor = 90 '
exec (@sql )
GO

/********************************************
lin_MakeChatLogTable
do make whether log table is exist or not
INPUT
@table_name varchar(60)
OUTPUT

return
made by
young
date
2003-09-19
********************************************/
ALTER PROCEDURE [DBO].[lin_MakeChatLogTable]
(
@table_name varchar(60)
)
AS
SET NOCOUNT ON

declare @sql varchar(1024)

set @sql = 'CREATE TABLE dbo.' + @table_name + ' (' 
+ 'act_time  datetime NULL ,' 
+ 'log_id  smallint NULL ,' 
+ 'actor  int  NULL , ' 
+ 'target  int NULL , ' 
+ 'location_x  int NULL , ' 
+ 'location_y  int NULL , ' 
+ 'location_z  int NULL , ' 
+ 'say varchar (256) NULL , ' 
+ 'STR_actor  varchar (32) NULL , ' 
+ 'STR_target  varchar (32) NULL  '
	+ ' )'

exec (@sql)

set @sql = 'CREATE CLUSTERED INDEX IX_' + @table_name + '_ACTOR on dbo.' + @table_name + ' (log_id, actor )   '
exec (@sql)

set @sql = 'CREATE NONCLUSTERED INDEX IX_' + @table_name + '_TARGET on dbo.' + @table_name + ' ( log_id, target )   '
exec (@sql)
GO

/********************************************
lin_MakeItemLogTable
do make whether log table is exist or not
INPUT
@table_name varchar(60)
OUTPUT

return
made by
young
date
2002-11-11
********************************************/
ALTER PROCEDURE [DBO].[lin_MakeItemLogTable]
(
@table_name varchar(60)
)
AS
SET NOCOUNT ON

declare @sql varchar(1024)

set @sql = 'CREATE TABLE dbo.' + @table_name + ' (' 
+ 'act_time  datetime NULL ,' 
+ 'log_id  smallint NULL ,' 
+ 'item_id  int NULL , ' 
+ 'item_type  int NULL , ' 
+ 'actor  varchar(32)  NULL , ' 
+ 'actor_account  varchar(32)  NULL , ' 
+ 'target  varchar(32)  NULL , ' 
+ 'target_account  varchar(32)  NULL , ' 
+ 'location_x  int NULL , ' 
+ 'location_y  int NULL , ' 
+ 'location_z  int NULL , ' 
+ 'etc_num1  int NULL , ' 
+ 'etc_num2  int NULL , ' 
+ 'etc_num3  int NULL , ' 
+ 'etc_num4  int NULL , ' 
+ 'etc_num5  int NULL , ' 
+ 'etc_num6  int NULL , ' 
+ 'etc_num7  int NULL , ' 
+ 'etc_num8  int NULL  ' 
+ ' )'

exec (@sql)


set @sql = 'CREATE INDEX IX_' + @table_name + '_1 on dbo.' + @table_name + ' (log_id) '
exec (@sql)

set @sql = 'CREATE INDEX IX_' + @table_name + '_2 on dbo.' + @table_name + ' (item_id)  '
exec (@sql)

set @sql = 'CREATE INDEX IX_' + @table_name + '_3 on dbo.' + @table_name + ' (item_type) '
exec (@sql)
GO

/********************************************
lin_MakeLogTable
do make whether log table is exist or not
INPUT
@table_name varchar(60)
OUTPUT

return
made by
young
date
2002-11-11
********************************************/
ALTER PROCEDURE [DBO].[lin_MakeLogTable]
(
@table_name varchar(60)
)
AS
SET NOCOUNT ON

declare @sql varchar(1024)

set @sql = 'CREATE TABLE dbo.' + @table_name + ' (' 
+ 'act_time  datetime NULL ,' 
+ 'log_id  smallint NULL ,' 
+ 'actor  int  NULL , ' 
+ 'actor_account  int  NULL , ' 
+ 'target  int NULL , ' 
+ 'target_account  int NULL , ' 
+ 'location_x  int NULL , ' 
+ 'location_y  int NULL , ' 
+ 'location_z  int NULL , ' 
+ 'etc_str1  varchar (200) NULL , ' 
+ 'etc_str2  varchar (50) NULL , ' 
+ 'etc_str3  varchar (50) NULL , ' 
+ 'etc_num1  float NULL , ' 
+ 'etc_num2  float NULL , ' 
+ 'etc_num3  int NULL , ' 
+ 'etc_num4  int NULL , ' 
+ 'etc_num5  int NULL , ' 
+ 'etc_num6  int NULL , ' 
+ 'etc_num7  int NULL , ' 
+ 'etc_num8  int NULL , ' 
+ 'etc_num9  int NULL , ' 
+ 'etc_num10  int NULL,'
+ 'STR_actor  varchar (48) NULL , ' 
+ 'STR_actor_account  varchar (32) NULL , ' 
+ 'STR_target  varchar (48) NULL , ' 
+ 'STR_target_account  varchar (32) NULL,  ' 
+ 'item_id int NULL'
+ ' )'

exec (@sql)

set @sql = 'CREATE CLUSTERED INDEX IX_' + @table_name + '_ACTOR on dbo.' + @table_name + ' ( log_id, actor ) WITH FILLFACTOR = 90 ON [PRIMARY]  '
exec (@sql)

set @sql = 'CREATE NONCLUSTERED INDEX IX_' + @table_name + '_ITEMTYPE on dbo.' + @table_name + ' ( actor , log_id   ) WITH FILLFACTOR = 90 ON [PRIMARY]  '
exec (@sql)

set @sql = 'CREATE NONCLUSTERED INDEX IX_' + @table_name + '_ITEMID on dbo.' + @table_name + ' ( item_id ) WITH FILLFACTOR = 90 ON [PRIMARY]  '
exec (@sql)
GO

/********************************************
lin_SetInserted
insert or update log file as inserted
INPUT
@log_file	nvarchar(255),
@log_table	nvarchar(50),
@log_year	int,
@log_month	int,
@log_day	int,
@log_hour	int,
@log_ip		int,
@log_svr	nvarchar(20),
@log_inout	nvarchar(20),
@rowsprocessed int
OUTPUT

return
made by
young
date
2002-10-14
********************************************/
ALTER PROCEDURE [DBO].[lin_SetInserted]
(
@log_file	nvarchar(255),
@log_table	nvarchar(50),
@log_year	int,
@log_month	int,
@log_day	int,
@log_hour	int,
@log_ip		int,
@log_svr	nvarchar(20),
@log_inout	nvarchar(20),
@rowsprocessed int,
@process_time int  = 0
)
AS
SET NOCOUNT ON

insert into log_insert( log_file, log_table, rowsprocessed, log_year, log_month, log_day, log_hour, log_ip, log_svr, log_inout, inserted, process_time )
values
(@log_file, @log_table, @rowsprocessed, @log_year, @log_month, @log_day, @log_hour, @log_ip, @log_svr, @log_inout, 1, @process_time )
GO

Link to comment
Share on other sites

  • 0

You don't need the LogD system to run the server and besdies, the function eats up too much RAM so you are better off not running it anyway; unless you are like me and run it as well as the AuthD and L2Comm on a serpate system.

Link to comment
Share on other sites

  • 0

Im 100% sure that when the dialog asking for DSN, instead of using the lin2log you just thought and used lin2world, which is in this case 100% wrong, so the easy way is, delete the lin2world DSN and create it again, so you can reset the LogD and select it properly this time.

I found sth, till the lines script works, after this he's ded , What have I do. How to make it manualy ? Can anyone help me with this problem ?

[glow=red,2,300]
-- Database  : lin2log

USE [lin2log]
GO

CREATE TABLE [dbo].[log_insert] (
  [log_file] nvarchar(255) COLLATE Korean_Wansung_CI_AS NOT NULL,
  [log_table] nvarchar(50) COLLATE Korean_Wansung_CI_AS NOT NULL,
  [rowsprocessed] int NOT NULL,
  [log_year] int NOT NULL,
  [log_month] int NOT NULL,
  [log_day] int NOT NULL,
  [log_hour] int NOT NULL,
  [log_ip] int NOT NULL,
  [log_svr] nvarchar(20) COLLATE Korean_Wansung_CI_AS NOT NULL,
  [log_inout] nvarchar(20) COLLATE Korean_Wansung_CI_AS NOT NULL,
  [process_time] int NULL,
  [inserted] int NULL
)
ON [PRIMARY]
GO
[/glow]

------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------
[move]<!-- Till this place script run well, after this he is ded , i looked into database -->[/move]
------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------



CREATE PROCEDURE [dbo].[lin_BulkInsert]

AS
SELECT 0
GO

CREATE PROCEDURE [dbo].[lin_CheckLogTimeTable2]

AS
SELECT 0
GO

CREATE PROCEDURE [dbo].[lin_DropLogTable]

AS
SELECT 0
GO

CREATE PROCEDURE [dbo].[lin_GetWorldSnap]

AS
SELECT 0
GO

CREATE PROCEDURE [dbo].[lin_MakeChatLogTable]

AS
SELECT 0
GO

CREATE PROCEDURE [dbo].[lin_MakeItemLogTable]

AS
SELECT 0
GO

CREATE PROCEDURE [dbo].[lin_MakeLogTable]

AS
SELECT 0
GO

CREATE PROCEDURE [dbo].[lin_SetInserted]

AS
SELECT 0
GO

ALTER PROCEDURE dbo.lin_BulkInsert 
(
@log_table	varchar(512),
@log_file	varchar(128)
)
AS

set nocount on

declare @sql varchar(1024)

set @sql = ' set nocount on'
+ ' BULK INSERT ' + @log_table + ' FROM ''' + @log_file + ''' WITH ( MAXERRORS = 65535, FIELDTERMINATOR = '','',  ROWTERMINATOR = ''\n'' ) '
+ ' select @@ROWCOUNT  ' 
exec ( @sql )
GO

/********************************************
lin_CheckLogTimeTable2
do check whether real time log table is exist or not
INPUT
@strDate varchar(16),
@nWorld  int
OUTPUT

return
made by
young
date
2002-11-11
********************************************/
ALTER PROCEDURE [DBO].[lin_CheckLogTimeTable2]
(
@strDate varchar(16),
@nWorld  int
)
AS
SET NOCOUNT ON

declare @table_name varchar(60)
declare @table2_name varchar(60)
declare @view_name varchar(60)
declare @sql varchar(2048)

-- check log_realtime
set @table_name = @strDate + 'log_realtime_' + cast (@nWorld as varchar)
set @sql = 'select * from sysobjects (nolock) where name = '''+ @table_name + ''''

exec ( @sql)
if ( @@ROWCOUNT = 0) 
begin
set @sql = 'exec lin_MakeLogTable ''' + @table_name + ''''
exec (@sql)
end

-- check log_audit
set @table_name = @strDate + 'log_audit_' + cast (@nWorld as varchar)
set @sql = 'select * from sysobjects (nolock) where name = '''+ @table_name + ''''
exec ( @sql)
if ( @@ROWCOUNT = 0) 
begin
set @sql = 'exec lin_MakeLogTable ''' + @table_name + ''''
exec (@sql)
end

-- check log_data ( store 0~12 hour log)
set @table_name = @strDate + 'log_data_' + cast (@nWorld as varchar)
set @sql = 'select * from sysobjects (nolock) where name = '''+ @table_name + ''''
exec ( @sql)
if ( @@ROWCOUNT = 0) 
begin
set @sql = 'exec lin_MakeLogTable ''' + @table_name + ''''
exec (@sql)
end

-- check log_data2 ( store 12~24 hour log)
set @table2_name = @strDate + 'log_data2_' + cast (@nWorld as varchar)
set @sql = 'select * from sysobjects (nolock) where name = '''+ @table2_name + ''''
exec ( @sql)
if ( @@ROWCOUNT = 0) 
begin
set @sql = 'exec lin_MakeLogTable ''' + @table2_name + ''''
exec (@sql)
end

-- check log_data0 ( view )
set @view_name = @strDate + 'log_data0_' + cast (@nWorld as varchar)
set @sql = 'select * from sysobjects (nolock) where name = '''+ @view_name + ''''
exec ( @sql)
if ( @@ROWCOUNT = 0) 
begin
--	set @sql = 'exec lin_MakeLogTable ''' + @table_name + ''''
set @sql = 'CREATE VIEW dbo.' + @view_name + '  ( ' 
	+ ' act_time,  log_id, actor, actor_account, target, target_account, location_x, location_y, location_z, ' 
	+ 'etc_str1, etc_str2, etc_str3,  ' 
	+ 'etc_num1, etc_num2, etc_num3, etc_num4, etc_num5, etc_num6, etc_num7, etc_num8, etc_num9, etc_num10, ' 
	+ 'STR_actor, STR_actor_account, STR_target, STR_target_account, item_id ' 
	+ ' ) AS ' 
	+ ' SELECT  act_time,  log_id, actor, actor_account, target, target_account, location_x, location_y, location_z, '
	+ ' etc_str1, etc_str2, etc_str3,  ' 
	+ ' etc_num1, etc_num2, etc_num3, etc_num4, etc_num5, etc_num6, etc_num7, etc_num8, etc_num9, etc_num10, '
	+ ' STR_actor, STR_actor_account, STR_target, STR_target_account, item_id ' 
	+ ' from   ' + @table_name  + '  (nolock) UNION '
	+ ' SELECT  act_time,  log_id, actor, actor_account, target, target_account, location_x, location_y, location_z, '
	+ ' etc_str1, etc_str2, etc_str3,  '
	+ ' etc_num1, etc_num2, etc_num3, etc_num4, etc_num5, etc_num6, etc_num7, etc_num8, etc_num9, etc_num10, '
	+ ' STR_actor, STR_actor_account, STR_target, STR_target_account, item_id '
	+ ' from   ' + @table2_name + '  (nolock)  '
exec (@sql)
end

-- check chat 
set @table_name = @strDate + 'log_chat_' + cast (@nWorld as varchar)
set @sql = 'select * from sysobjects (nolock) where name = '''+ @table_name + ''''
exec ( @sql)
if ( @@ROWCOUNT = 0) 
begin
set @sql = 'exec lin_MakeChatLogTable ''' + @table_name + ''''
exec (@sql)
end
GO

ALTER PROCEDURE dbo.lin_DropLogTable
@drop_date	datetime,
@drop_world	int
AS

if @drop_date is null
begin
set @drop_date = getdate()
set @drop_date = dateadd(d, -4, getdate())
end

DECLARE @nyear int
DECLARE @nmonth int
DECLARE @nday int
DECLARE @stryear varchar(10)
DECLARE @strmonth varchar(10)
DECLARE @strday varchar(10)
DECLARE @str_report varchar(32)
DECLARE @logdate int

set @nyear = datepart(yyyy, @drop_date)
set @nmonth = datepart(mm, @drop_date)
set @nday = datepart(dd, @drop_date)

set @stryear = cast(@nyear as varchar)
if @nmonth < 10
set @strmonth = '0' + cast(@nmonth as varchar)
else
set @strmonth = cast (@nmonth as varchar)

if @nday < 10
set @strday = '0' + cast(@nday as varchar)
else
set @strday = cast (@nday as varchar)	

set @str_report = @stryear + '/' + @strmonth + '/' + @strday
set @logdate = cast(@stryear + @strmonth + @strday as int)

------------- now.. we have year, month, day string
DECLARE @table_from varchar(60)
declare @sql varchar (1024)


set @table_from = 'L' + @stryear  + '_' + @strmonth + '_' + @strday + '_log_data0_' + cast ( @drop_world as varchar)
set @sql = ' drop view ' + @table_from

exec (@sql)


set @table_from = 'L' + @stryear  + '_' + @strmonth + '_' + @strday + '_log_data_' + cast ( @drop_world as varchar)
set @sql = ' drop table ' + @table_from

exec (@sql)


set @table_from = 'L' + @stryear  + '_' + @strmonth + '_' + @strday + '_log_data2_' + cast ( @drop_world as varchar)
set @sql = ' drop table ' + @table_from

exec (@sql)

/*
set @table_from = 'L' + @stryear  + '_' + @strmonth + '_' + @strday + '_log_chat_' + cast ( @drop_world as varchar)
set @sql = ' drop table ' + @table_from

exec (@sql)
*/
GO

/******************************************************************************
#Name:	lin_GetWorldSnap
#Desc:	do make snap shot table of user_data, user_item, pledge, user_nobless

#Argument:
Input:	@db_server	varchar(30)	server name
	@user_id	varchar(30)	login id
	@user_pass	varchar(30)	password
	@world_id	int		world id
	@dtnow		varchar(8)	yyyyMMdd
Output:	
#Return:
#Result Set:

#Remark:
#Example:	exec lin_GetWorldSnap 'l2db2', 'gamma', '********', 8
#See:

#History:
Create	flagoftiger	2004-06-14
Modify	btwinuni	2005-05-16	add: pledge
Modify	btwinuni	2005-09-29	add: user_nobless
Modify	btwinuni	2005-10-27	add parameter: dtnow
******************************************************************************/
ALTER PROCEDURE [DBO].[lin_GetWorldSnap]
@db_server	varchar(30),
@user_id	varchar(30),
@user_pass	varchar(30),
@world_id	int,
@dtnow		varchar(8) = ''
AS
SET NOCOUNT ON
SET ANSI_WARNINGS ON
SET ANSI_NULLS ON

declare @tmp_user_item nvarchar(50)
declare @tmp_user_data nvarchar(50)
declare @tmp_pledge nvarchar(50)
declare @tmp_user_nobless nvarchar(50)
declare @drop_user_item nvarchar(50)
declare @drop_user_data nvarchar(50)
declare @drop_pledge nvarchar(50)
declare @drop_user_nobless nvarchar(50)
declare @dtnow2 nvarchar(8)
declare @sql varchar(4000)

if @dtnow = ''
begin
set @dtnow = convert(varchar, getdate(), 112)
end

set @dtnow2 = convert(varchar, DATEADD(d, -2, cast(@dtnow as datetime)), 112)

-- set table name
set @tmp_user_item = 'S' + left(@dtnow,4) + '_' + substring(@dtnow,5,2) + '_' + right(@dtnow,2) + '_snap_item_' + cast(@world_id as varchar)
set @tmp_user_data = 'S' + left(@dtnow,4) + '_' + substring(@dtnow,5,2) + '_' + right(@dtnow,2) + '_snap_data_' + cast(@world_id as varchar)
set @tmp_pledge = 'S' + left(@dtnow,4) + '_' + substring(@dtnow,5,2) + '_' + right(@dtnow,2) + '_snap_pledge_' + cast(@world_id as varchar)
set @tmp_user_nobless = 'S' + left(@dtnow,4) + '_' + substring(@dtnow,5,2) + '_' + right(@dtnow,2) + '_snap_nobless_' + cast(@world_id as varchar)

-- set drop table name
set @drop_user_item = 'S' + left(@dtnow2,4) + '_' + substring(@dtnow2,5,2) + '_' + right(@dtnow2,2) + '_snap_item_' + cast(@world_id as varchar)
set @drop_user_data = 'S' + left(@dtnow2,4) + '_' + substring(@dtnow2,5,2) + '_' + right(@dtnow2,2) + '_snap_data_' + cast(@world_id as varchar)
set @drop_pledge = 'S' + left(@dtnow2,4) + '_' + substring(@dtnow2,5,2) + '_' + right(@dtnow2,2) + '_snap_pledge_' + cast(@world_id as varchar)
set @drop_user_nobless = 'S' + left(@dtnow2,4) + '_' + substring(@dtnow2,5,2) + '_' + right(@dtnow2,2) + '_snap_nobless_' + cast(@world_id as varchar)


--------------------------------------------------------------------------------------------------------------------------------------------
-- user_item snap shot
--------------------------------------------------------------------------------------------------------------------------------------------

-- check table whether @drop_user_item is exists or not
set @sql = 'if exists (select * from dbo.sysobjects where id = object_id(N''[dbo].[' + @drop_user_item + ']'') and objectproperty(id, N''IsUserTable'') = 1)'
+ ' begin'
+ ' drop table dbo.' + @drop_user_item
+ ' end'
exec (@sql)

-- check table whether @tmp_user_item is exists or not
set @sql = 'if exists (select * from dbo.sysobjects where id = object_id(N''[dbo].[' + @tmp_user_item + ']'') and objectproperty(id, N''IsUserTable'') = 1)'
+ ' begin'
+ ' drop table dbo.' + @tmp_user_item
+ ' end'
exec (@sql)


set @sql = ' select * into dbo.' + @tmp_user_item
+ ' from OPENROWSET ( ''SQLOLEDB'', ''' + @db_server + ''';''' + @user_id + ''';''' + @user_pass  + ''',  ''select * from lin2world.dbo.tmp_user_item (nolock) where char_id > 0 '') '
exec (@sql )

set @sql = 'CREATE CLUSTERED INDEX IX_' + @tmp_user_item + '_1 on dbo.' + @tmp_user_item + ' (char_id asc, item_type asc, enchant desc ) with fillfactor = 90 '
exec (@sql)
set @sql = 'CREATE NONCLUSTERED INDEX IX_' + @tmp_user_item + '_2 on dbo.' + @tmp_user_item + ' (item_type asc, enchant desc ) with fillfactor = 90 '
exec (@sql)



--------------------------------------------------------------------------------------------------------------------------------------------
-- user_data snap shot
--------------------------------------------------------------------------------------------------------------------------------------------

-- check table whether @drop_user_data is exists or not
set @sql = 'if exists (select * from dbo.sysobjects where id = object_id(N''[dbo].[' + @drop_user_data + ']'') and objectproperty(id, N''IsUserTable'') = 1)'
+ ' begin'
+ ' drop table dbo.' + @drop_user_data
+ ' end'
exec (@sql)

-- check table whether 'tmp_user_data' is exists or not
set @sql = 'if exists (select * from dbo.sysobjects where id = object_id(N''[dbo].[' + @tmp_user_data + ']'') and objectproperty(id, N''IsUserTable'') = 1)'
+ ' begin'
+ ' drop table dbo.' + @tmp_user_data
+ ' end'
exec (@sql)


set @sql = ' select * into dbo.' + @tmp_user_data
+ ' from OPENROWSET ( ''SQLOLEDB'', ''' + @db_server + ''';''' + @user_id + ''';''' + @user_pass  + ''',  ''select * from lin2world.dbo.tmp_user_data (nolock)'') '
exec (@sql )

set @sql = 'CREATE CLUSTERED INDEX IX_' + @tmp_user_data + '_1 on dbo.' + @tmp_user_data + ' (exp desc) with fillfactor = 90 '
exec (@sql )
set @sql = 'CREATE NONCLUSTERED INDEX IX_' + @tmp_user_data + '_2 on dbo.' + @tmp_user_data + ' (race asc, exp desc) with fillfactor = 90 '
exec (@sql )
set @sql = 'CREATE NONCLUSTERED INDEX IX_' + @tmp_user_data + '_3 on dbo.' + @tmp_user_data + ' (class asc, exp desc) with fillfactor = 90 '
exec (@sql )



--------------------------------------------------------------------------------------------------------------------------------------------
-- pledge snap shot
--------------------------------------------------------------------------------------------------------------------------------------------

-- check table whether @drop_pledge is exists or not
set @sql = 'if exists (select * from dbo.sysobjects where id = object_id(N''[dbo].[' + @drop_pledge + ']'') and objectproperty(id, N''IsUserTable'') = 1)'
+ ' begin'
+ ' drop table dbo.' + @drop_pledge
+ ' end'
exec (@sql)

-- check table whether '@tmp_pledge' is exists or not
set @sql = 'if exists (select * from dbo.sysobjects where id = object_id(N''[dbo].[' + @tmp_pledge + ']'') and objectproperty(id, N''IsUserTable'') = 1)'
+ ' begin'
+ ' drop table dbo.' + @tmp_pledge
+ ' end'
exec (@sql)


set @sql = ' select * into dbo.' + @tmp_pledge
+ ' from OPENROWSET ( ''SQLOLEDB'', ''' + @db_server + ''';''' + @user_id + ''';''' + @user_pass  + ''',  ''select * from lin2world.dbo.tmp_pledge (nolock)'') '
exec (@sql )

set @sql = 'CREATE CLUSTERED INDEX IX_' + @tmp_pledge + '_1 on dbo.' + @tmp_pledge + ' (pledge_id) with fillfactor = 90 '
exec (@sql )


--------------------------------------------------------------------------------------------------------------------------------------------
-- user_nobless snap shot
--------------------------------------------------------------------------------------------------------------------------------------------

-- check table whether @drop_user_nobless is exists or not
set @sql = 'if exists (select * from dbo.sysobjects where id = object_id(N''[dbo].[' + @drop_user_nobless + ']'') and objectproperty(id, N''IsUserTable'') = 1)'
+ ' begin'
+ ' drop table dbo.' + @drop_user_nobless
+ ' end'
exec (@sql)

-- check table whether '@tmp_user_nobless' is exists or not
set @sql = 'if exists (select * from dbo.sysobjects where id = object_id(N''[dbo].[' + @tmp_user_nobless + ']'') and objectproperty(id, N''IsUserTable'') = 1)'
+ ' begin'
+ ' drop table dbo.' + @tmp_user_nobless
+ ' end'
exec (@sql)


set @sql = ' select * into dbo.' + @tmp_user_nobless
+ ' from OPENROWSET ( ''SQLOLEDB'', ''' + @db_server + ''';''' + @user_id + ''';''' + @user_pass  + ''',  ''select * from lin2world.dbo.tmp_user_nobless (nolock)'') '
exec (@sql )

set @sql = 'CREATE CLUSTERED INDEX IX_' + @tmp_user_nobless + '_1 on dbo.' + @tmp_user_nobless + ' (char_id) with fillfactor = 90 '
exec (@sql )
GO

/********************************************
lin_MakeChatLogTable
do make whether log table is exist or not
INPUT
@table_name varchar(60)
OUTPUT

return
made by
young
date
2003-09-19
********************************************/
ALTER PROCEDURE [DBO].[lin_MakeChatLogTable]
(
@table_name varchar(60)
)
AS
SET NOCOUNT ON

declare @sql varchar(1024)

set @sql = 'CREATE TABLE dbo.' + @table_name + ' (' 
+ 'act_time  datetime NULL ,' 
+ 'log_id  smallint NULL ,' 
+ 'actor  int  NULL , ' 
+ 'target  int NULL , ' 
+ 'location_x  int NULL , ' 
+ 'location_y  int NULL , ' 
+ 'location_z  int NULL , ' 
+ 'say varchar (256) NULL , ' 
+ 'STR_actor  varchar (32) NULL , ' 
+ 'STR_target  varchar (32) NULL  '
	+ ' )'

exec (@sql)

set @sql = 'CREATE CLUSTERED INDEX IX_' + @table_name + '_ACTOR on dbo.' + @table_name + ' (log_id, actor )   '
exec (@sql)

set @sql = 'CREATE NONCLUSTERED INDEX IX_' + @table_name + '_TARGET on dbo.' + @table_name + ' ( log_id, target )   '
exec (@sql)
GO

/********************************************
lin_MakeItemLogTable
do make whether log table is exist or not
INPUT
@table_name varchar(60)
OUTPUT

return
made by
young
date
2002-11-11
********************************************/
ALTER PROCEDURE [DBO].[lin_MakeItemLogTable]
(
@table_name varchar(60)
)
AS
SET NOCOUNT ON

declare @sql varchar(1024)

set @sql = 'CREATE TABLE dbo.' + @table_name + ' (' 
+ 'act_time  datetime NULL ,' 
+ 'log_id  smallint NULL ,' 
+ 'item_id  int NULL , ' 
+ 'item_type  int NULL , ' 
+ 'actor  varchar(32)  NULL , ' 
+ 'actor_account  varchar(32)  NULL , ' 
+ 'target  varchar(32)  NULL , ' 
+ 'target_account  varchar(32)  NULL , ' 
+ 'location_x  int NULL , ' 
+ 'location_y  int NULL , ' 
+ 'location_z  int NULL , ' 
+ 'etc_num1  int NULL , ' 
+ 'etc_num2  int NULL , ' 
+ 'etc_num3  int NULL , ' 
+ 'etc_num4  int NULL , ' 
+ 'etc_num5  int NULL , ' 
+ 'etc_num6  int NULL , ' 
+ 'etc_num7  int NULL , ' 
+ 'etc_num8  int NULL  ' 
+ ' )'

exec (@sql)


set @sql = 'CREATE INDEX IX_' + @table_name + '_1 on dbo.' + @table_name + ' (log_id) '
exec (@sql)

set @sql = 'CREATE INDEX IX_' + @table_name + '_2 on dbo.' + @table_name + ' (item_id)  '
exec (@sql)

set @sql = 'CREATE INDEX IX_' + @table_name + '_3 on dbo.' + @table_name + ' (item_type) '
exec (@sql)
GO

/********************************************
lin_MakeLogTable
do make whether log table is exist or not
INPUT
@table_name varchar(60)
OUTPUT

return
made by
young
date
2002-11-11
********************************************/
ALTER PROCEDURE [DBO].[lin_MakeLogTable]
(
@table_name varchar(60)
)
AS
SET NOCOUNT ON

declare @sql varchar(1024)

set @sql = 'CREATE TABLE dbo.' + @table_name + ' (' 
+ 'act_time  datetime NULL ,' 
+ 'log_id  smallint NULL ,' 
+ 'actor  int  NULL , ' 
+ 'actor_account  int  NULL , ' 
+ 'target  int NULL , ' 
+ 'target_account  int NULL , ' 
+ 'location_x  int NULL , ' 
+ 'location_y  int NULL , ' 
+ 'location_z  int NULL , ' 
+ 'etc_str1  varchar (200) NULL , ' 
+ 'etc_str2  varchar (50) NULL , ' 
+ 'etc_str3  varchar (50) NULL , ' 
+ 'etc_num1  float NULL , ' 
+ 'etc_num2  float NULL , ' 
+ 'etc_num3  int NULL , ' 
+ 'etc_num4  int NULL , ' 
+ 'etc_num5  int NULL , ' 
+ 'etc_num6  int NULL , ' 
+ 'etc_num7  int NULL , ' 
+ 'etc_num8  int NULL , ' 
+ 'etc_num9  int NULL , ' 
+ 'etc_num10  int NULL,'
+ 'STR_actor  varchar (48) NULL , ' 
+ 'STR_actor_account  varchar (32) NULL , ' 
+ 'STR_target  varchar (48) NULL , ' 
+ 'STR_target_account  varchar (32) NULL,  ' 
+ 'item_id int NULL'
+ ' )'

exec (@sql)

set @sql = 'CREATE CLUSTERED INDEX IX_' + @table_name + '_ACTOR on dbo.' + @table_name + ' ( log_id, actor ) WITH FILLFACTOR = 90 ON [PRIMARY]  '
exec (@sql)

set @sql = 'CREATE NONCLUSTERED INDEX IX_' + @table_name + '_ITEMTYPE on dbo.' + @table_name + ' ( actor , log_id   ) WITH FILLFACTOR = 90 ON [PRIMARY]  '
exec (@sql)

set @sql = 'CREATE NONCLUSTERED INDEX IX_' + @table_name + '_ITEMID on dbo.' + @table_name + ' ( item_id ) WITH FILLFACTOR = 90 ON [PRIMARY]  '
exec (@sql)
GO

/********************************************
lin_SetInserted
insert or update log file as inserted
INPUT
@log_file	nvarchar(255),
@log_table	nvarchar(50),
@log_year	int,
@log_month	int,
@log_day	int,
@log_hour	int,
@log_ip		int,
@log_svr	nvarchar(20),
@log_inout	nvarchar(20),
@rowsprocessed int
OUTPUT

return
made by
young
date
2002-10-14
********************************************/
ALTER PROCEDURE [DBO].[lin_SetInserted]
(
@log_file	nvarchar(255),
@log_table	nvarchar(50),
@log_year	int,
@log_month	int,
@log_day	int,
@log_hour	int,
@log_ip		int,
@log_svr	nvarchar(20),
@log_inout	nvarchar(20),
@rowsprocessed int,
@process_time int  = 0
)
AS
SET NOCOUNT ON

insert into log_insert( log_file, log_table, rowsprocessed, log_year, log_month, log_day, log_hour, log_ip, log_svr, log_inout, inserted, process_time )
values
(@log_file, @log_table, @rowsprocessed, @log_year, @log_month, @log_day, @log_hour, @log_ip, @log_svr, @log_inout, 1, @process_time )
GO

If you are using Chrome as browser, press Ctrl + F and search that SP that you are looking for, and you will see that is in that lines, you are just not smart enough installing the database, or perhaps as i already said, you didn't selected the DSN correctly when launching the LogD service.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Posts

    • WTB Site Developer services.
    • @TZANEEN BUY UNIVERSAL SSD CHEMICAL SOLUTION  +27833928661 in South Africa, Gauteng, KwaZulu-Natal, Limpopo, Free State, Mpumalanga, North West, Western Cape, Eastern Cape, Northern Cape, Benoni, Boksburg, Brakpan, Carletonville, Germiston, Johannesburg, Krugersdorp, Mafikeng, Pretoria, Randburg, Randfontein, Roodepoort, Soweto, Springs, Vanderbijlpark, Vereeniging, Durban,  +27833928661Empangeni, Ladysmith, Newcastle, Pietermaritzburg, Pinetown, Ulundi, Umlazi, Bethlehem, Bloemfontein, Jagersfontein, Kroonstad, Odendaalsrus, Parys, Phuthaditjhaba, Sasolburg, Virginia, Welkom, Giyani, Lebowakgomo, Musina, Phalaborwa, Polokwane, Seshego, Sibasa, Emalahleni, Nelspruit, Secunda, Standerton, Klerksdorp, Mahikeng, Mmabatho, Potchefstroom, Rustenburg, Bellville, Cape Town, Constantia, George, Hopefield, Oudtshoorn, Paarl, Simon’s Town, Stellenbosch, Swellendam, Worcester, Alice, Butterworth, East London, Graaff-Reinet, Grahamstown, King William’s Town, Mthatha, Port Elizabeth, Queenstown, Uitenhage, Zwelitsha. +27833928661 Call For Ssd Chemical Solution for Cleaning All Notes +27833928661. Please inform us immediately on Email: Kennroger77@gmail.com Or Call: +27833928661. https://Kennroger7.Blogspot.com/website https://Kennroger7.Blogspot.com/techniciankenn https://Kennroger7.blogspot.com/   We Clean all types of Currencies call  +27833928661 Ssd Solution Chemical for Cleaning Black Money Notes Call +27833928661 Ssd Solution Used to Clean all type of Blackened +27833928661, Tainted and Defaced Bank Notes  +27833928661. We Sell Ssd Chemical Solution Used to Clean All type of Black Money and any Color Currency, Stain and Defaced Bank Notes with any others equipment being bad. Our technicians are highly qualified and are always ready to handle the cleaning perfectly. Our chemical is 100% Pure. Automatic Ssd Solution for Sale +27833928661 Rustenburg, Mafikeng, Polokwane Durban/east London, Pretoria, Johannesburg, Mpumalanga. Ssd chemical Solution for Sale in Johannesburg  +27833928661 in Zimbabwe, Mozambique, Angola, Namibia, Botswana, Lesotho and Swaziland Call and Buy Ssd Chemical Solution for Defaced Banknotes +27833928661 in Mozambique, South Africa, Lesotho, Swaziland, Namibia, Angola, Botswana, Mauritius, Zambia, Zimbabwe, Mauritania, Mauritius, Congo Call For 100% Pure Ssd Chemical Solution +27833928661 in Finland and USA.   Ssd Chemical Solution for all Defaced Bank Notes in Bloemfontein +27833928661 in Johannesburg, Cape town, Polokwane, Rustenburg, Kimberley, Durban, Pietermaritzburg, Klerksdorp, Mafikeng, Belgium, Honduras, Brazil, Argentina.  +27833928661 We are Specialized in Chemistry for anti-breeze Bank Notes. We also do Chemicals Melting and Recovering of all type of bad money from black to white Call +27833928661. We also sale chemicals like tourmaline,  +27833928661 Ssd Chemical solution and many other activation powder. About Ssd Solution for cleaning black money chemical and allied product incorporated is a major manufacturer of industrial and pharmaceutical products with key specialization in the production of ssd automatic solution used in the cleaning of black money and defaced money and stained bank notes with anti -breeze quality. The ssd solution in it's full range is the best chemical in the market for cleaning anti breeze bank notes, defaced currency and marked notes. Others for damaged notes. +27833928661 Please inform us immediately on Email: Kennroger77@gmail.com or Call: +27833928661. https://Kennroger7.Blogspot.com/website https://Kennroger7.Blogspot.com/techniciankenn https://Kennroger7.blogspot.com/
    • @ (3 IN 1, WORKING 100%) SSD CHEMICAL SOLUTIONS +27833928661 AND ACTIVATION POWDER FOR CLEANING OF BLACK NOTES @BUY SSD CHEMICAL SOLUTIONS ON GOOD PRICE +27833928661, +27833928661 @ CLEANING BLACK NOTES WITH SSD CHEMICALUTUTIONS @BEST SUPPLIERS OF SSD CHEMICAL SOLUTIONS +27833928661 IN Qatar, New York, Limpopo, London, Venezuela, Chile, Sweden, Denmark, Rwanda, Oman ,, Dubai, Poland New Castle, Namibia, Botswana, Mozambique, South Africa, Limpo¬po, JORDAN, Turkey, Belgium, Saudi Arabia, Australia, Malaysia, to Johannesbu Zambia, Swaziland, Madagascar, Zimbabwe, Lesotho, Uganda, rg, Lebanon, Berhrain USA, California, Dallas, England, German, Spain, Jamaica, Brazil, Germany, Austria, Vancouver, Denmark, Hong Kong, China ,, Pretoria, Durban, Australia, Wales, France, Cairo, Namibia, Botswana, China, Norway, Sweden, Capet own, Tanzania, Northern Cape, Canada ,, Soshanguve, Pietermaritzburg Pinetown, Vaal, Polokwane Pretoria Randburg Roodepoort Rustenburg Sebokeng Soweto Springbok Stellenbosch Thohoyandou Umlazi Upington Vanderbijlpark Vereeniging Welkom Tembisa Kempton Park Port Elizabeth Bellville Boksburg Benoni Bloemfontein Cape Town Centurion Durban East London George Empangeni Katlehong Germiston Johannesburg Port Elizabeth Khayelitsha Kimberley Klerksdorp Mamelodi Mitchells Plain Mthatha Nelspruit Newcastle Witbank Eastern cape, Free State Gauteng KwaZulu-Natal Limpopo Mpumalanga Do you have black currency in form of Dollars, Pounds or Euros or any other currency? I have the most powerful and Universal cleaning chemical you are looking for. I sell SSD automatic solution, Vetrol paste 0.2A and so many others. I also have a variety of Powders needed when doing the large cleanings such as Activation powder. We specialize in cleaning all types of defaced notes, black notes, anti-breeze bank notes, stamp coated and stained currency. We melt and re-activate frozen chemicals and offer 100% cleaning for bills like dollar, euro, pounds, RANDS and transferring of colors from used note to new white bills. We offer machines for large cleaning and also deliver products to any location desired by buyers. Laboratory staff are available to demonstrate to clients how the work is done. Are you looking for: — call+27833928661 SSD Chemical Solution Chemical Solution for Cleaning Black Money call+27833928661 SSD Chemical Company SSD Chemical Solution for Cleaning Black Money SSD Preserving Company SSD Chemical Solution for Cleaning Black Money Activation Powder SSD Chemical Solution for Cleaning Black notes Active Powder Activation Powder for Cleaning Black Notes Black Money Cleaning Clean Black Money Best SSD Solution Clean Black Notes Cleaning Black Notes Cleaning Black Money PLEASE NOTE: WE ONLY DEAL IN HIGH QUALITY SSD CHEMICALS SOLUTION FOR CLEANING BLACK MONEY We are manufacturers and sellers of all sort of chemicals like SUPER AUTOMATIC SSD SOLUTION ZWV8 MODEL ACTIVATION POWDER AND REACTIVATION POWDER, ANTI AIR POWDER, MERCURY POWDER, AUTOMATED MONEY DEVELOPER MACHINES CONGEAL CHEMICAL MELTING EQUIPMENT, TEMPERATURE CONTROLLERS AND AUTOMATIC CLEANING MACHINE. WE ARE SELLING SSD CHEMICAL SOLUTION FOR CLEANING BLACK MONEY AND POWDER CALL+27833928661 purchase Best SSD Solution Clean Black Notes Dollars WE ALSO SELL CHEMICALS LIKE SSD AUTOMATIC SOLUTION FORM CLEANING BLACK DOLLARS CURRENCIES We clean all black and green money and stamped money Infinity labs pty (since 2000) *: We can help you clean your money, (+27833928661) *, we supply a high quality of the ssd solution with machi * ne and it comes with a full package of instructions and accessories. It is the ultimate anti- * breeze solution used in cleaning defaced currency. It can be referred to as black dollar etc… *. or bank stained currency. PRODUCTS AVAILABLE: * SSD SOLUTION SSD Supreme Solution SSD universal solution SSD Tourmaline solution SSD SOLUTION PK 58 SSD Topix solution SSD Castro X Oxide solution D6 SSD universal Solution D7 SSD SOLUTION PK 58 SSD MECURY DIOSINE AUTOMATIC SOLUTION SSD NSERVATION, ACTIVATION AND RE-ACTIVATION, PARACIENT POWDER, VECTROL PASTE, ZUTA S4, CASTROX OXIDE AUTOMATED MONEY DEVELOPER MACHINES CONGEAL CHEMICAL MELTING EQUIPMENTS * TEMPERATURE CONTROLLERS Our agent will meet with you in any part of the world. CALL OR WATSUPP US @+27833928661 Email: Kennroger77@gmail.com
    • World’s Best Technician for Supplying Universal Ssd Chemical Solution in Limpopo,Sasolburg,Witbank,Standarton,Secunda,Middelburg,Vanderbijlpark,Johannesburg,Secunda,Cape Town,Burgersfort, Polokwane, Thohoyandou, phalaborwa, mokopane, bochum, +27833928661lebowakgomo, mankweng, Seshego, dendron, Giyani, Lephalale, musina,Alexandra +27833928661Johannesburg Lenasia Midrand Randburg+27833928661 Roodepoort Sandton Soweto Alberton Germiston Benoni Boksburg ,rakpan Daveyton,Duduza ,edenvale ,germiston Impumelelo Isando Katlehong Kempton Park KwaThema Nigel Reiger Park Springs Tembisa Thokoza Tsakane Vosloorus Wattville Atteridgaeville Centurion Hammanskraal Irene Mamelodi Pretoria Soshanguve Boipatong Bophelong Evaton Sebokeng Sharpeville, Vereeniging,Meyerton Heidelberg Ratanda Bronkhorstspruit Ekangala Kungwini Bronberg,Cullinan Refilwe,Zithobeni ,Carletonville,Khutsong Kagiso Kromdraai KrugersdorpMagaliesburg Muldersdrift Mohlaken,Randfontein Bekkersdal,testonaria Kimberley Upington Kuruman Sprinbok Kathu Ritchie Postmasburg,Bellville Bloemfontein.+27833928661 To purchase Best SSD Chemical Solution to Clean Black Notes Dollars.WE ALSO SALE +27833928661CHEMICALS LIKE SSD AUTOMATIC SOLUTION FORM CLEANING BLACK DOLLARS CURRENCIES. I hereby use this media to inform you, that our company can clean out black deface currency, (stained money) bank notes, We have all kinds of chemicals used for cleaning of black money or stained money in currencies such as U.S Dollars, Euro, Pound, and all local currencies, even if your defaced note is 25 years old. WE SALE CHEMICALS LIKE TOURMALINE, S.S.D. Chemical / Solution , CASTRO X OXIDE, A4 AND MANY Like ACTIVATION POWDER & SSD SOLUTION FOR CLEANING BLACK MONEY Chemical and Allied product incorporated is a major manufacturer of industrial and pharmaceutical products with key specialization in the production of S.S.D Automatic solution used in the cleaning of black money , defaced money and stained bank notes with anti-breeze quality. OTHERS FOR DAMAGED NOTES, BILLS LIKE USD,EURO, POUNDS, Contact Dr.Elvis+27833928661 OR Email Kennroger77@gmail.com for more Information…Chemical Solution in Limpopo,Sasolburg,Witbank,Standarton,Secunda,Middelburg,Vanderbijlpark,Johannesburg,Secunda,Cape Town,Burgersfort, Polokwane, Thohoyandou, phalaborwa, mokopane, bochum, lebowakgomo, mankweng, Seshego, dendron, Giyani, Lephalale, musina,Alexandra Johannesburg Lenasia Midrand Randburg Roodepoort Sandton Soweto Alberton Germiston Benoni Boksburg ,rakpan Daveyton,Duduza ,edenvale ,germiston Impumelelo Isando Katlehong Kempton Park KwaThema Nigel Reiger Park Springs Tembisa Thokoza Tsakane Vosloorus Wattville Atteridgaeville Centurion Hammanskraal Irene Mamelodi Pretoria Soshanguve Boipatong Bophelong Evaton Sebokeng Sharpeville, Vereeniging,Meyerton Heidelberg Ratanda Bronkhorstspruit Ekangala Kungwini Bronberg,Cullinan Refilwe,Zithobeni ,Carletonville,Khutsong Kagiso Kromdraai KrugersdorpMagaliesburg Muldersdrift Mohlaken,Randfontein Bekkersdal,testonaria Kimberley Upington Kuruman Sprinbok Kathu Ritchie Postmasburg,Bellville Bloemfontein. To purchase Best SSD Chemical Solution to Clean Black Notes Dollars.WE ALSO SALE CHEMICALS LIKE SSD AUTOMATIC SOLUTION FORM CLEANING BLACK DOLLARS CURRENCIES. I hereby use this media to inform you, that our company can clean out black deface currency, (stained money) bank notes, We have all kinds of chemicals used for cleaning of black money or stained money in currencies such as U.S Dollars, Euro, Pound, and all local currencies, even if your defaced note is 25 years old. WE SALE CHEMICALS LIKE TOURMALINE, S.S.D. Chemical / Solution , CASTRO X OXIDE, A4 AND MANY Like ACTIVATION POWDER & SSD SOLUTION FOR CLEANING BLACK MONEY Chemical and Allied product incorporated is a major manufacturer of industrial and pharmaceutical products with key specialization in the production of S.S.D Automatic solution used in the cleaning of black money , defaced money and stained bank notes with anti-breeze quality. OTHERS FOR DAMAGED NOTES, BILLS LIKE USD,EURO, POUNDS, Contact Dr.Elvis+27833928661 OR Email Kennroger77@gmail.com for more Information… in Limpopo,Sasolburg,Witbank,Standarton,Secunda,Middelburg,Vanderbijlpark,Johannesburg,Secunda,Cape Town,Burgersfort, Polokwane, Thohoyandou, phalaborwa, mokopane, bochum, lebowakgomo, mankweng, Seshego, dendron, Giyani, Lephalale, musina,Alexandra Johannesburg Lenasia Midrand Randburg Roodepoort Sandton Soweto Alberton Germiston Benoni Boksburg ,rakpan Daveyton,Duduza ,edenvale ,germiston Impumelelo Isando Katlehong Kempton Park KwaThema Nigel Reiger Park Springs Tembisa Thokoza Tsakane Vosloorus Wattville Atteridgaeville Centurion Hammanskraal Irene Mamelodi Pretoria Soshanguve Boipatong Bophelong Evaton Sebokeng Sharpeville, Vereeniging,Meyerton Heidelberg Ratanda Bronkhorstspruit Ekangala Kungwini Bronberg,Cullinan Refilwe,Zithobeni ,Carletonville,Khutsong Kagiso Kromdraai KrugersdorpMagaliesburg Muldersdrift Mohlaken,Randfontein +27833928661Bekkersdal,testonaria Kimberley Upington Kuruman Sprinbok Kathu Ritchie Postmasburg,Bellville Bloemfontein.+27833928661 To purchase Best SSD Chemical Solution to Clean Black Notes Dollars.WE ALSO SALE CHEMICALS LIKE SSD AUTOMATIC SOLUTION FORM CLEANING BLACK DOLLARS CURRENCIES. I hereby use this media to inform you, that our company can clean out black deface currency, +27833928661(stained money) bank notes, We have all kinds of chemicals used for cleaning of black money or stained money in currencies such as U.S Dollars, Euro, Pound, and all local currencies, even if your defaced note is 25 years old.+27833928661 WE SALE CHEMICALS LIKE TOURMALINE, S.S.D. Chemical / Solution , CASTRO X OXIDE, A4 AND MANY Like ACTIVATION POWDER & SSD SOLUTION FOR CLEANING BLACK MONEY Chemical and Allied product incorporated is a major manufacturer of industrial and pharmaceutical products with key specialization in the production of S.S.D Automatic solution used in the cleaning of black money , defaced money and stained bank notes with anti-breeze quality. OTHERS FOR DAMAGED NOTES, BILLS LIKE USD,EURO, POUNDS,+27833928661 Contact Dr.Elvis +27833928661 OR Email Kennroger77@gmail.com for more Information…
    • Cleaning black money +27833928661 with ssd chemical solution  +27 833928661  vanderbijlpark- nairobi, East London Tembisa ,Cape Town Durban Johannesburg Soweto Pretoria Port Elizabeth Pietermaritzburg Benoni Vereeniging Bloemfontein Boksburg Welkom Newcastle Krugersdorp Diepsloot Botshabelo Brakpan Witbank Richards Bay Vanderbijlpark Centurion Uitenhage Roodepoort Paarl Springs Carletonville Klerksdorp Midrand Westonaria Middelburg Vryheid Orkney Kimberley eMbalenhle Nigel Mpumalanga Bhisho Randfontein DR MBONYE has powerful lottery spells to help you win the lottery jackpot and make you rich beyond your wildest dreams I have used lottery spells and won in my personal capacity.Money Spells to eradicat Change your life For information CONTACTWhatsapp +27 833928661 EMAIL: kennrogger77@gmail.com cleaning black money with ssd chemical solution in Uganda,South sudan,Kemya,South Africa,Dubai,UAE,Kuwait,Tanzanai +27 833928661 Our vision to be the leading premier high-value and high security chemicals producer in the world and offering our services to everyone who knocks at our door step. SSD CHEMICAL SOLUTIONS LTD is uniquely positioned to consistently provide high-value solutions and world-changing chemicals and services to our clients. +27 833928661 WE ARE SPECIALIZED IN CHEMISTRY FOR ANTI-BREEZE BANK NOTES. WE ALSO DO CHEMICALS MELTING AND RECOVERING OF ALL TYPE OF BAD MONEY FROM BLACK TO WHITE AS YOU CAN SEE BELOW. Anti-freezing Preparations and Prepared De-icing Fluids, SSD Solution. Vectrol paste, Tebi-Manetic solution, Defaced currency, Cleaning chemical. Darkened currency, Black coated notes, Cleaning black money, super automatic SSD solution, anti-breeze bank notes. please contact Linda for more information on +27 833928661
  • Topics

×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock