|
You last visited: Today at 02:13
Advertisement
usp_Read_Chars_PointLog_R 11 help me all please
Discussion on usp_Read_Chars_PointLog_R 11 help me all please within the Shaiya Private Server forum part of the Shaiya category.
05/16/2011, 00:28
|
#1
|
elite*gold: 0
Join Date: Apr 2008
Posts: 31
Received Thanks: 1
|
usp_Read_Chars_PointLog_R 11 help me all please
hi all,
So i have this bug its the time not good work?
::LoadCharacter 11 Hasko qerr=-1, EXEC usp_Read_Chars_PointLog_R 11
2011-05-16 00:24:57 ErrorMsg=[Microsoft][ODBC SQL Server Driver]Invalid character value for cast specification, SQL STATE: 22018, NATIVE ERROR: 0 (0x0)
2011-05-16 00:25:16 1 1 SAgent:  isconnect: (4, 64)
|
|
|
05/16/2011, 12:28
|
#2
|
elite*gold: 261
Join Date: Sep 2009
Posts: 288
Received Thanks: 236
|
Use this
Code:
set ANSI_NULLS ON
set QUOTED_IDENTIFIER OFF
GO
/****** 개체: 저장 프로시저 dbo.usp_Read_Chars_R 스크립트 날짜: 2006-05-09 오후 12:17:36 ******/
ALTER Proc [dbo].[usp_Read_Chars_R]
@ServerID tinyint,
@UserUID int,
@Del int= 0
AS
SET NOCOUNT ON
SELECT CharID, CharName, Slot,
Family, Grow, Hair, Face, [Size], Job, ***, [Level], [Str], Dex, Rec, [Int], Luc, Wis,
HP, MP, SP, Map, RenameCnt, RemainTime,
DATEPART(yyyy, RegDate) AS MakeTime_YYYY,
DATEPART(mm, RegDate) AS MakeTime_MM,
DATEPART(dd, RegDate) AS MakeTime_DD,
DATEPART(hh, RegDate) AS MakeTime_HH,
DATEPART(mi, RegDate) AS MakeTime_MI,
DATEPART(ss, RegDate) AS MakeTime_SS
FROM Chars
WHERE ServerID=@ServerID AND UserUID=@UserUID AND Del=@Del
SET NOCOUNT OFF
|
|
|
05/16/2011, 16:27
|
#3
|
elite*gold: 0
Join Date: Dec 2010
Posts: 717
Received Thanks: 3,366
|
The issue is indeed a returned date that is read & formatted using local domestic settings (those used by MSSQL) by ODBC and misunderstood by ps_game that try to recover it using Korean rules, but the PO dealt with Read_Chars_PointLog not Read_Chars.
|
|
|
All times are GMT +1. The time now is 02:14.
|
|