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
|
|
@ -0,0 +1,52 @@
|
|||
CREATE PROCEDURE [dbo].[up_SetInquiryChatting]
|
||||
@world_id int
|
||||
,@inquiry_id int
|
||||
,@chatting_number int
|
||||
,@sender nvarchar(16)
|
||||
,@chatting nvarchar(255)
|
||||
|
||||
as
|
||||
set nocount on
|
||||
|
||||
|
||||
declare @createtime datetime
|
||||
set @createtime = getdate()
|
||||
|
||||
declare @year varchar(50)
|
||||
declare @month varchar(50)
|
||||
|
||||
set @year = convert(varchar, datepart(yy,@createtime))
|
||||
set @month = convert(varchar, datepart(mm,@createtime))
|
||||
|
||||
set xact_abort on
|
||||
begin tran
|
||||
|
||||
declare @updatesql nvarchar(1500)
|
||||
|
||||
-- Login_Log ??? ??
|
||||
exec Local_CreateInquiryChattingTable @createtime
|
||||
|
||||
|
||||
SET @updatesql ='insert into InquiryChatting_Log_'+ @year+'_'
|
||||
+@month+ '( world_id
|
||||
,log_id
|
||||
,keyboarder
|
||||
,chat_number
|
||||
,dialog
|
||||
,date )
|
||||
values ('
|
||||
+ '''' +convert(nvarchar, @world_id) + '''' + ','
|
||||
+ '''' +convert(nvarchar, @inquiry_id) + '''' + ','
|
||||
+ '''' +@sender + '''' + ','
|
||||
+ '''' +convert(nvarchar, @chatting_number) + '''' + ','
|
||||
+ '''' +@chatting + '''' + ','
|
||||
+ '''' +convert(nvarchar, @createtime, 109)+ '''' + ')'
|
||||
EXEC(@updatesql)
|
||||
|
||||
if(@@error <> 0)
|
||||
begin
|
||||
rollback
|
||||
return
|
||||
end
|
||||
|
||||
commit
|
||||
Loading…
Add table
Add a link
Reference in a new issue