Post Pacific  

Go Back   Post Pacific > Восстановленный архив > Темы без сохранившегося раздела
FAQ Community Calendar Today's Posts Search

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 04.01.2007, 19:10   #1
kin
Архивный участник
 
Join Date: Sep 2006
Posts: 882
Default Very strange error about taxes. Need help

Code:
01/04/2007 20:00:xx.xx5, Error sql: EXEC lin_SetLastTaxUpdate '2007-0-4 12:0:53', '2007-0-4 0:0:48', '2007-0-4 20:0:57' (0)
01/04/2007 20:00:xx.xx5, Error 42000:[Microsoft][ODBC SQL Server Driver][SQL Server]Error converting data type varchar to datetime.
01/04/2007 20:00:xx.xx5, [.\Socket.cpp][12448] cannot update last tax change date.
What is the problem? Everything went well but new year
Why year starts from 0 and finishes with 11? First error was about changing 11 to 0.
Can someone explain please.

I know about date format
https://postpacific.loc-online.com/f...&postcount=146

This is something else
kin is offline  
Old 06.01.2007, 12:36   #2
nasso
Архивный участник
 
Join Date: Nov 2006
Posts: 118
Default

2007-0-4 12:0:53 >>>>> 20070104 12:01:53
nasso is offline  
Old 06.01.2007, 13:10   #3
kin
Архивный участник
 
Join Date: Sep 2006
Posts: 882
Default

I can understand that, but where is the problem. The date format is: dd mm yyyy, so it shouldn't cut first digit
kin is offline  
Old 07.01.2007, 02:05   #4
Rexx
Архивный участник
 
Join Date: Jun 2006
Posts: 64
Default

Run the below command if you havn't already, it will update you castle_tax table:


EXEC lin_SetLastTaxUpdate '2007-01-06 12:00:03', '2007-01-06 00:00:01', '2007-01-06 06:00:01'


I believe the error is in the application code that is calling this sproc, for some reason 0 has been used as January, so you will find your castle_tax table has not been updated since November.
Im no expert and I could be wrong but the above script is a temp fix until someone finds the problem. As soon as I find the error I will post a fix.

edit: I have searched the data base for all refrences to the above sproc and cannot find any references to it, so the source is either in the ai.obj, dll or exe.
Fodiw has stated he has fixed his, maybe he could shed some light on this topic, his fix is far from what I am thinking if so then his fix will be alot easier.
https://postpacific.loc-online.com/f...ead.php?t=6529
Rexx is offline  
Old 07.01.2007, 12:30   #5
m4rk
Архивный участник
 
Join Date: Jan 2006
Posts: 607
Default

May I ask what your regional settings are?
m4rk is offline  
Old 07.01.2007, 13:54   #6
kin
Архивный участник
 
Join Date: Sep 2006
Posts: 882
Default

Russia, but date format dd.mm.yyyy with "."
kin is offline  
Old 07.01.2007, 17:42   #7
Forcer
Архивный участник
 
Join Date: Apr 2006
Posts: 554
Default

Have this promblem too...
Russia, yyyy-mm-dd hh:mm:ss (system date format).
2007-0-4 12:0:53 is wrong, 2007-01-4 12:01:53 is correct, one number after zero's are missing...

i don't know how to fix it... =\
Forcer is offline  
Old 07.01.2007, 22:15   #8
kin
Архивный участник
 
Join Date: Sep 2006
Posts: 882
Default

You do not right! It doesn't cut the last digit. Look at your last date. It would be November! Server starts from 0 and finishes the year with 11!
kin is offline  
Old 07.01.2007, 23:15   #9
Rexx
Архивный участник
 
Join Date: Jun 2006
Posts: 64
Default

I have tried several different formats with no change.
If anyone does not have this fault maybe you could PM me with the possability of swapping certain files to locate the origin of this sproc.
I am trying to trace the sproc to the file calling it using sql profiler but it will take some time.
Rexx is offline  
Old 09.01.2007, 18:39   #10
HF
Архивный участник
 
Join Date: Aug 2005
Posts: 1,531
Default

fixed. need fix stored procedure
change value for month +1
HF is offline  
Old 09.01.2007, 19:21   #11
Forcer
Архивный участник
 
Join Date: Apr 2006
Posts: 554
Default

can u post fixed procedure?
Forcer is offline  
Old 09.01.2007, 23:05   #12
Rexx
Архивный участник
 
Join Date: Jun 2006
Posts: 64
Default

HF
Is your fix in the sproc: lin_setlasttaxupdate or in the sproc that calls this stored procedure.

Thanks
Rexx is offline  
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 18:07.