![]() |
|
|
#1 |
|
Архивный участник
Join Date: Sep 2006
Posts: 882
|
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. ![]() 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 |
|
|
|
|
#2 |
|
Архивный участник
Join Date: Nov 2006
Posts: 118
|
2007-0-4 12:0:53 >>>>> 20070104 12:01:53
|
|
|
|
|
#3 |
|
Архивный участник
Join Date: Sep 2006
Posts: 882
|
I can understand that, but where is the problem. The date format is: dd mm yyyy, so it shouldn't cut first digit
|
|
|
|
|
#4 |
|
Архивный участник
Join Date: Jun 2006
Posts: 64
|
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 |
|
|
|
|
#5 |
|
Архивный участник
Join Date: Jan 2006
Posts: 607
|
May I ask what your regional settings are?
|
|
|
|
|
#6 |
|
Архивный участник
Join Date: Sep 2006
Posts: 882
|
Russia, but date format dd.mm.yyyy with "."
|
|
|
|
|
#7 |
|
Архивный участник
Join Date: Apr 2006
Posts: 554
|
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... =\ |
|
|
|
|
#8 |
|
Архивный участник
Join Date: Sep 2006
Posts: 882
|
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!
|
|
|
|
|
#9 |
|
Архивный участник
Join Date: Jun 2006
Posts: 64
|
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. |
|
|
|
|
#10 |
|
Архивный участник
Join Date: Aug 2005
Posts: 1,531
|
fixed. need fix stored procedure
change value for month +1 |
|
|
|
|
#11 |
|
Архивный участник
Join Date: Apr 2006
Posts: 554
|
can u post fixed procedure?
|
|
|
|
|
#12 |
|
Архивный участник
Join Date: Jun 2006
Posts: 64
|
HF
Is your fix in the sproc: lin_setlasttaxupdate or in the sproc that calls this stored procedure. Thanks |
|
|
| Thread Tools | Search this Thread |
| Display Modes | |
|
|