CREATE PROCEDURE [dbo].[up_get_all_character] @AuthID [uniqueidentifier], @server int as begin set nocount on set transaction isolation level read uncommitted -- ------------------------------------------------------- -- -- 접속 유저 로그 DB로 보내기 -- declare @srvname nvarchar(128) -- declare @srvid smallint -- declare @bcust_id nvarchar(50) -- declare @char_name nvarchar(30) -- declare @character_id [uniqueidentifier] -- set @bcust_id = '' -- set @char_name = '' -- set @character_id = '00000000-0000-0000-0000-000000000000' -- -- set @srvid = -1 -- SELECT @srvid = srvid FROM master.dbo.sysservers where srvname = 'RustyHearts_LogDB' -- if(@srvid <> -1) -- begin -- select top 1 @bcust_id=bcust_id from CharacterTable where AuthID = @AuthID -- exec RustyHearts_LogDB.RustyHearts_Log.dbo.sp_SetConnectionUV 1, @server, @AuthID, @bcust_id, -- @character_id, @char_name, 1, '' -- end -- ------------------------------------------------------- select C.[character_id] ,C.[AuthID] ,C.[server] ,C.[Name] ,C.[Class] ,C.[Job] ,C.[Level] ,C.[Experience] ,C.[Stamina] ,C.[SP] ,C.[Total_SP] ,C.[Fatigue] ,C.[LobbyID] ,C.[StartPoint] ,C.[gold] ,C.[individual_roomID] ,C.[GuildID] ,C.[Hearts] ,C.[first_login] ,C.[tutorial] ,C.[give_up] ,C.[Block_Type] ,C.[storage_gold] ,C.[storage_count] ,C.[IsTradeEnable] ,C.[CreateTime] ,C.[LastLogin] ,C.[Expire_Time] --시간 이벤트 관련 추가 [2010/05/27 jojo] ,C.[event_fatigue] ,C.[event_hearts] ,C.[event_fortune] ,C.[dice_point] ,C.[Addition_HP] ,C.[Addition_MP] ,C.[Addition_Physic_Attack] ,C.[Addition_Physic_Defense] ,C.[Addition_Magic_Attack] ,C.[Addition_Magic_Defense] ,C.[Permission] ,C.[FatigueStorage] ,C.[DayAttachGold] ,C.[DayAttachItem] ,C.[GuildPoint] --길드 포인트 추가 ,C.[Fortune] --운세 ,C.[IsMoveEnable] --이동불가 ,C.[event_mailattach] ,C.[Block_YN] ,C.[tutorial_step] ,C.[daypartymission] ,C.[event_daypartymission] ,C.[time_sp] ,ISNULL(G.[grade],7) as guild_grade --길드 등급 추가(테스트용-작업자 문의:김진영) ,ISNULL(G.alias_name, '') as guild_alias_name --길드 별명 추가(테스트용-작업자 문의:김진영) ,ISNULL(GT.name, '') as guild_name --길드 이름 - 이후 추가시 담당에게 문의 : 김진영 from CharacterTable AS C WITH (NOLOCK) LEFT OUTER JOIN GuildMemberTable AS G WITH (NOLOCK) ON G.[character_id]=C.[character_id] --WHERE C.[AuthID]=@AuthID and C.[server]=@server LEFT OUTER JOIN GuildTable AS GT WITH (NOLOCK) ON GT.[guild_id]=C.[GuildID] WHERE C.[AuthID]=@AuthID --and C.[server]=@server --from CharacterTable WITH (NOLOCK) where AuthID = @AuthID and server = @server end