|
You last visited: Today at 17:57
Advertisement
error 0
Discussion on error 0 within the Shaiya forum part of the MMORPGs category.
02/17/2011, 21:33
|
#31
|
elite*gold: 0
Join Date: Jan 2011
Posts: 120
Received Thanks: 74
|
Msg 242, Level 16, State 3, Line 1
The conversion of a char data type DATETIME returned a value out of range for date and time.
The statement has been terminated.
|
|
|
02/17/2011, 21:42
|
#32
|
elite*gold: 0
Join Date: Jan 2011
Posts: 120
Received Thanks: 74
|
apparently it must be the date and time that is the problem
|
|
|
02/17/2011, 22:31
|
#33
|
elite*gold: 0
Join Date: Oct 2009
Posts: 262
Received Thanks: 812
|
Ya, it is something with the datetime. But that datetime is a valid datetime in the US. I think it may have something to do with how different countries write datetime.
See if this works:
Code:
SET DATEFORMAT YMD;
INSERT INTO PointLog(UseType,UserUID,CharID,UsePoint,ProductCode,UseDate)
VALUES(1,1,3,349,'AC_1000 75_1','2011-02-17 19:41:38');
|
|
|
02/18/2011, 05:17
|
#34
|
elite*gold: 0
Join Date: Jan 2011
Posts: 120
Received Thanks: 74
|
always error
Msg 208, Level 16, State 1, Line 2
Nom d'objet 'PointLog' non valide
|
|
|
02/18/2011, 05:21
|
#35
|
elite*gold: 0
Join Date: Jan 2011
Posts: 120
Received Thanks: 74
|
I think sql server management studio is in French for which I have the error written in French
|
|
|
02/18/2011, 16:28
|
#36
|
elite*gold: 0
Join Date: Oct 2009
Posts: 262
Received Thanks: 812
|
What if you explicitly tell it the location of PointLog, like this?
Code:
SET DATEFORMAT YMD;
INSERT INTO PS_GameData.dbo.PointLog(UseType,UserUID,CharID,UsePoint,ProductCode,UseDate)
VALUES(1,1,3,349,'AC_1000 75_1','2011-02-17 19:41:38');
|
|
|
02/18/2011, 17:44
|
#37
|
elite*gold: 0
Join Date: Jan 2011
Posts: 120
Received Thanks: 74
|
here's what gives me
|
|
|
02/18/2011, 19:02
|
#38
|
elite*gold: 0
Join Date: Oct 2009
Posts: 262
Received Thanks: 812
|
It looked like that worked then, so probably your SQL Server expects dates to be in some format other than YMD.
You can try adding
Code:
SET DATEFORMAT YMD;
into your [dbo].[usp_Save_User_BuyPointItems_NCash] stored procedure and it should fix that varchar to datetime conversion error you were getting there.
|
|
|
02/18/2011, 19:50
|
#39
|
elite*gold: 0
Join Date: Jan 2011
Posts: 120
Received Thanks: 74
|
I have tried to add it gave me this message
(1 row (s) affected)
|
|
|
02/18/2011, 19:59
|
#40
|
elite*gold: 0
Join Date: Oct 2009
Posts: 262
Received Thanks: 812
|
Quote:
Originally Posted by topazee
I have tried to add it gave me this message
(1 row (s) affected)
|
When you updated your stored procedure? or when?
|
|
|
02/19/2011, 06:46
|
#41
|
elite*gold: 0
Join Date: Jan 2011
Posts: 120
Received Thanks: 74
|
When I carried the new query code and then execute it gives me
(1 row (s) affected)
|
|
|
02/21/2011, 07:20
|
#42
|
elite*gold: 0
Join Date: Jan 2011
Posts: 120
Received Thanks: 74
|
I just still do not buy item mall
|
|
|
All times are GMT +1. The time now is 17:58.
|
|