decomp DBCServer_Release and inspect/document database
This commit is contained in:
parent
4b267cbe05
commit
7834b98bf0
28222 changed files with 843300 additions and 144 deletions
35
decomp/schema/RustyHearts_Log/procs/Plan_MCUSave.sql
Normal file
35
decomp/schema/RustyHearts_Log/procs/Plan_MCUSave.sql
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
CREATE PROCEDURE [dbo].[Plan_MCUSave]
|
||||
@log_type smallint,
|
||||
@world_id int,
|
||||
@user_num int,
|
||||
@entry_date datetime
|
||||
as
|
||||
set nocount on
|
||||
|
||||
set xact_abort on
|
||||
begin tran
|
||||
|
||||
exec Local_CreateMCUTable @entry_date
|
||||
|
||||
declare @br nvarchar(1500)
|
||||
|
||||
declare @year nvarchar(50)
|
||||
declare @month nvarchar(50)
|
||||
set @year = convert(nvarchar, datepart(yy,@entry_date))
|
||||
set @month = convert(nvarchar, datepart(mm,@entry_date))
|
||||
|
||||
SET @br = 'insert into MCU_Log_'+@year+'_'+@month+'(log_type, world_id, user_num, date) values('
|
||||
+''''+convert(nvarchar, @log_type)+''''+','
|
||||
+''''+convert(nvarchar, @world_id)+''''+','
|
||||
+''''+convert(nvarchar, @user_num)+''''+','
|
||||
+ '''' +convert(nvarchar, @entry_date)+ '''' + ')'
|
||||
|
||||
EXEC(@br)
|
||||
|
||||
if(@@error <> 0)
|
||||
begin
|
||||
rollback
|
||||
return
|
||||
end
|
||||
|
||||
commit
|
||||
Loading…
Add table
Add a link
Reference in a new issue