Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Shaiya > Shaiya Private Server > Shaiya PServer Guides & Releases
You last visited: Today at 06:21

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[FIX] SQL Error to convert Varchar in Datetime

Discussion on [FIX] SQL Error to convert Varchar in Datetime within the Shaiya PServer Guides & Releases forum part of the Shaiya Private Server category.

Reply
 
Old   #1
 
julianinou's Avatar
 
elite*gold: 0
Join Date: May 2010
Posts: 58
Received Thanks: 15
[FIX] SQL Error to convert Varchar in Datetime

Hi many guys asked me why they were getting in their log, the SQL error: error to convert "Varchar in Datetime", so i took a look on EPvPers and i didn't see (maybe i'm wrong o.o) any post with the problem solved.

It happens with Warehouse dcing when trying to store items or the notice board !

It's not really a Fix but more a specific attention to pay on SQL configurations.

SQL maybe tried to save the datas in a wrong date format !

To check if you're in this case, run the next query:

Code:
SELECT 'dateformat: ' + date_format FROM sys.dm_exec_sessions WHERE session_id = @@spid
If the result is :

Code:
1 . Dateformat: mdy
then everything is good if the result is :

Code:
1. Dateformat: dmy
Wrong format, just follow the instructions.

1: Go to your Database properties
2: Advenced page
3: Check your "default language" and select : us_english or English but not British_english

Found it by my self and i hope it'll help you in your development !

*Greetings*
julianinou is offline  
Thanks
5 Users
Old 04/16/2014, 23:25   #2
 
sony65's Avatar
 
elite*gold: 0
Join Date: Dec 2009
Posts: 58
Received Thanks: 3
The error stay, because i have install french SQL 2005 version and when i change in advanced, 0 result, my error 0 stay ..
sony65 is offline  
Old 08/27/2015, 10:49   #3
 
elite*gold: 0
Join Date: Aug 2015
Posts: 16
Received Thanks: 2
Thanks you!! Work to me!!! this was unique solution for me Error 0 from Item mall!!
Me server working 2 month fine,but I change anything and before had error 0 buying in item mall!
[Dev]Viking is offline  
Old 01/19/2016, 05:50   #4
 
julianinou's Avatar
 
elite*gold: 0
Join Date: May 2010
Posts: 58
Received Thanks: 15
I'm a bit late to reply, i was just taking a look around there and i forgot to say if the errors still appear you just have to uninstall your french version of MSSQL 2005 and install an english version
julianinou is offline  
Old 01/22/2016, 21:40   #5
 
elite*gold: 0
Join Date: Sep 2015
Posts: 101
Received Thanks: 7
doesnt work for me :V
AgustinWoW is offline  
Old 01/23/2016, 01:54   #6
 
julianinou's Avatar
 
elite*gold: 0
Join Date: May 2010
Posts: 58
Received Thanks: 15
English version and keep the same format? Or Date format won't change?
julianinou is offline  
Old 01/23/2016, 02:05   #7
 
elite*gold: 0
Join Date: Sep 2015
Posts: 101
Received Thanks: 7
my date is ok but i still geting error convert varchar in datetime :VV
AgustinWoW is offline  
Old 01/23/2016, 19:37   #8
 
julianinou's Avatar
 
elite*gold: 0
Join Date: May 2010
Posts: 58
Received Thanks: 15
Well my knowledge is a bit low to help more bro :/ But what are you trying to do or what did you do before getting that error? Items stored in warehouse? Item mall? Item stored in Notice Board?
julianinou is offline  
Old 01/24/2016, 02:29   #9
 
elite*gold: 0
Join Date: Sep 2015
Posts: 101
Received Thanks: 7
i have item mall error 10053 in ep 6.3 (is like error 0) and when i saw the logs i see error to converter varchar to datetame so i think that it is the problem =P
sorry for my bad english

and yes my date format is dmy
AgustinWoW is offline  
Old 01/24/2016, 03:20   #10
 
st.jimmy998's Avatar
 
elite*gold: 0
Join Date: Jan 2013
Posts: 343
Received Thanks: 137
Quote:
Originally Posted by AgustinWoW View Post
i have item mall error 10053 in ep 6.3 (is like error 0) and when i saw the logs i see error to converter varchar to datetame so i think that it is the problem =P
sorry for my bad english

and yes my date format is dmy
you're using SQL in Spanish? If you do, install English version
st.jimmy998 is offline  
Old 01/24/2016, 18:34   #11
 
elite*gold: 0
Join Date: Sep 2015
Posts: 101
Received Thanks: 7
yes im using the spanish and i´ve used it before to do a ep 6.3 and item mall works before ... and recently idk i have error 10053 item mall ....
i will go to try with the english version
AgustinWoW is offline  
Old 01/27/2016, 19:32   #12
 
julianinou's Avatar
 
elite*gold: 0
Join Date: May 2010
Posts: 58
Received Thanks: 15
Yeah better try the english version sometimes it seems like to be different on 2 Servers with same stuff and same config
julianinou is offline  
Old 04/11/2016, 17:59   #13
 
elite*gold: 0
Join Date: Sep 2015
Posts: 101
Received Thanks: 7
i installed english version and i have wrong format
the lenguage is in english
AgustinWoW is offline  
Old 04/12/2016, 09:33   #14
 
elite*gold: 0
Join Date: Jan 2012
Posts: 106
Received Thanks: 47
Talking

Quote:
Originally Posted by AgustinWoW View Post
i installed english version and i have wrong format
the lenguage is in english
that happens because your pc or where you're setting up your server.
It is in the language and format in Spanish so I advise you to install your windows in English otherwise your will continue with error

also you can try this with the sql in Spanish

a thank you would be enough xD
I'm kidding! aaa!!!
Raziel166 is offline  
Thanks
1 User
Reply

Tags
convert varchar datetime


Similar Threads Similar Threads
Kick to convert: easy and fast way to convert your item_proto/mob_proto to txt files!
09/07/2016 - Metin2 PServer Guides & Strategies - 21 Replies
Hi all, this is my first release :) This "kick converter" will allow you to generate txt files (item_names, item_proto, mob_proto, mob_names) for the rev-34k game. The script was written in python by me, so you need python 2.7 and MySQLDB (python extension) installed on your server. If you found any error, please report it to me and I'll fix it as soon as possibile. PS: If you get errors while converting the item_proto, please remove items that have type 29 or type 31.
Varchar to datetime error
06/19/2013 - Shaiya PServer Development - 5 Replies
Hi, everyone... to the point.... I'm having some problems with mi warehouse and item mall, all the problems are because varchar cannot convert into datetime (I THINK) and I'm getting sick of searching in others post because anything works :( so... here are my logs. Hope somebody could help me... please please :handsdown: If somebody knows how to fix this, I'll be grateful if he explains me detailed and sloooooooowly please :p PS_GAME__system log start (Game01) 2013-06-18 22:30:05...
[Error]Cannot convert to INT from Edited
02/10/2011 - Dekaron Private Server - 2 Replies
Hey,i've been trying to do a test server for me to learn a little dev things...but i got the next error : http://img641.imageshack.us/img641/743/error1a.jp g I dont know what to do...can someone give me a tip or something?
[ERROR]Can't convert to int
02/28/2010 - Dekaron Private Server - 3 Replies
I have been trying to edit the exp in the monster.csv file but now I keep getting this error : http://img3.imageshack.us/img3/6346/errorkw.th.jp g any idea what could be wrong? here is the monster.csv if you want to see it...monster.csv
[HELP] Datetime error
06/23/2009 - CO2 Private Server - 0 Replies
Ok im geting this error when i try to load 10 expballs per day here it is http://img188.imageshack.us/img188/8279/erroryfn.p ng



All times are GMT +2. The time now is 06:21.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.