Hello, sometimes people on my server getting DC after a few hours of play. DC does rollback of charcter items, locations and the other things that they had. I tried to change ps_DBAgent.exe, for the one who gave LPH. My file serves from TeddyBear. If anyone knows how to fix it I would ask a help.
2014-07-16 17:36:37 err=-1, [Microsoft][ODBC SQL Server Driver][SQL Server]Transaction (Process ID 69) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction., SQL STATE: 40001, NATIVE ERROR: 1205 (0x4B5)
2014-07-16 17:36:42 err=-1, [Microsoft][ODBC SQL Server Driver][SQL Server]Transaction (Process ID 70) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction., SQL STATE: 40001, NATIVE ERROR: 1205 (0x4B5)
2014-07-16 17:36:44 err=-1, [Microsoft][ODBC SQL Server Driver][SQL Server]Transaction (Process ID 67) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction., SQL STATE: 40001, NATIVE ERROR: 1205 (0x4B5)
2014-07-16 17:36:45 err=-1, [Microsoft][ODBC SQL Server Driver][SQL Server]Transaction (Process ID 70) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction., SQL STATE: 40001, NATIVE ERROR: 1205 (0x4B5)
2014-07-16 17:36:46 err=-1, [Microsoft][ODBC SQL Server Driver][SQL Server]Transaction (Process ID 68) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction., SQL STATE: 40001, NATIVE ERROR: 1205 (0x4B5)
2014-07-16 17:36:46 err=-1, [Microsoft][ODBC SQL Server Driver][SQL Server]Transaction (Process ID 68) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction., SQL STATE: 40001, NATIVE ERROR: 1205 (0x4B5)
2014-07-16 17:36:46 err=-1, [Microsoft][ODBC SQL Server Driver][SQL Server]Transaction (Process ID 67) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction., SQL STATE: 40001, NATIVE ERROR: 1205 (0x4B5)
2014-07-16 17:36:46 err=-1, [Microsoft][ODBC SQL Server Driver][SQL Server]Transaction (Process ID 68) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction., SQL STATE: 40001, NATIVE ERROR: 1205 (0x4B5)
2014-07-16 17:36:47 err=-1, [Microsoft][ODBC SQL Server Driver][SQL Server]Transaction (Process ID 69) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction., SQL STATE: 40001, NATIVE ERROR: 1205 (0x4B5)
2014-07-16 17:36:47 err=-1, [Microsoft][ODBC SQL Server Driver][SQL Server]Transaction (Process ID 70) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction., SQL STATE: 40001, NATIVE ERROR: 1205 (0x4B5)
2014-07-16 17:36:47 err=-1, [Microsoft][ODBC SQL Server Driver][SQL Server]Transaction (Process ID 69) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction., SQL STATE: 40001, NATIVE ERROR: 1205 (0x4B5)
USE [PS_GameData] GO /****** Object: StoredProcedure [dbo].[usp_Save_Char_Info_E] Script Date: 07/14/2014 00:21:26 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO
IF (ISNumeric(@Posx) = 1 and ISNumeric(@Posy) = 1 and ISNumeric(@Posz) = 1) BEGIN SET @PosxR = CAST(@Posx as real) SET @PosyR = CAST(@Posy as real) SET @PoszR = CAST(@Posz as real) END ELSE BEGIN
SET @Map = 42 SET @PosxR = 66.5 SET @PosYR = 2.0 SET @PosZR = 52.6 END
IF( (@K1 IS NOT NULL) AND (@K2 IS NOT NULL) AND (@K3 IS NOT NULL) AND (@K4 IS NOT NULL)) BEGIN UPDATE Chars SET K1=@K1, K2=@K2, K3=@K3, K4=@K4 WHERE CharID=@CharID END
IF(@@ERROR = 0 AND @@ROWCOUNT = 1) BEGIN RETURN 1 END ELSE BEGIN RETURN -1 END
No, server still working just players getting DC (but not all which are online in game). Btw server using Microsoft SQL Server 2008 R2 on Windows Server 2008 R2 no idea if it's important.
Server have 2GB of RAM but when is run using like 900 - 1000 MB. I have no idea. Does the apache with script that showing players online or any procedure in database can doing that? Other logs looks good just in ps agent they are.
Hoever thanks for reply. If anyone know what i can change please for answer.
USE [PS_GameData]
GO
/****** Object: StoredProcedure [dbo].[usp_Save_Char_Info_E] Script Date: 07/14/2014 00:21:26 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF (ISNumeric(@Posx) = 1 and ISNumeric(@Posy) = 1 and ISNumeric(@Posz) = 1)
BEGIN
SET @PosxR = CAST(@Posx as real)
SET @PosyR = CAST(@Posy as real)
SET @PoszR = CAST(@Posz as real)
END
ELSE
BEGIN
SET @Map = 42
SET @PosxR = 66.5
SET @PosYR = 2.0
SET @PosZR = 52.6
END
IF( (@K1 IS NOT NULL) AND (@K2 IS NOT NULL) AND (@K3 IS NOT NULL) AND (@K4 IS NOT NULL))
BEGIN
UPDATE Chars SET K1=@K1, K2=@K2, K3=@K3, K4=@K4 WHERE CharID=@CharID
END
IF(@@ERROR = 0 AND @@ROWCOUNT = 1)
BEGIN
RETURN 1
END
ELSE
BEGIN
RETURN -1
END
SET NOCOUNT OFF
Make a backup of yours, test mine, and tell me what happend
Thanks. I executed that. As I said the problem is somtimes, last DCs was yesterday at 20:06 - 20:07, 20:22 and as the log show players get dc on the same time but not all time. Currently the server is enabled since before yesterday(without restart I mean). BTW does the sql 2008 R2 32 bit on windows server 2008 R2 64 bit can cause these problems?
2014-07-16 17:36:37 err=-1, [Microsoft][ODBC SQL Server Driver][SQL Server]Transaction (Process ID 69) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction., SQL STATE: 40001, NATIVE ERROR: 1205 (0x4B5)
2014-07-16 17:36:42 err=-1, [Microsoft][ODBC SQL Server Driver][SQL Server]Transaction (Process ID 70) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction., SQL STATE: 40001, NATIVE ERROR: 1205 (0x4B5)
2014-07-16 17:36:44 err=-1, [Microsoft][ODBC SQL Server Driver][SQL Server]Transaction (Process ID 67) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction., SQL STATE: 40001, NATIVE ERROR: 1205 (0x4B5)
2014-07-16 17:36:45 err=-1, [Microsoft][ODBC SQL Server Driver][SQL Server]Transaction (Process ID 70) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction., SQL STATE: 40001, NATIVE ERROR: 1205 (0x4B5)
2014-07-16 17:36:46 err=-1, [Microsoft][ODBC SQL Server Driver][SQL Server]Transaction (Process ID 68) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction., SQL STATE: 40001, NATIVE ERROR: 1205 (0x4B5)
2014-07-16 17:36:46 err=-1, [Microsoft][ODBC SQL Server Driver][SQL Server]Transaction (Process ID 68) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction., SQL STATE: 40001, NATIVE ERROR: 1205 (0x4B5)
2014-07-16 17:36:46 err=-1, [Microsoft][ODBC SQL Server Driver][SQL Server]Transaction (Process ID 67) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction., SQL STATE: 40001, NATIVE ERROR: 1205 (0x4B5)
2014-07-16 17:36:46 err=-1, [Microsoft][ODBC SQL Server Driver][SQL Server]Transaction (Process ID 68) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction., SQL STATE: 40001, NATIVE ERROR: 1205 (0x4B5)
2014-07-16 17:36:47 err=-1, [Microsoft][ODBC SQL Server Driver][SQL Server]Transaction (Process ID 69) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction., SQL STATE: 40001, NATIVE ERROR: 1205 (0x4B5)
2014-07-16 17:36:47 err=-1, [Microsoft][ODBC SQL Server Driver][SQL Server]Transaction (Process ID 70) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction., SQL STATE: 40001, NATIVE ERROR: 1205 (0x4B5)
2014-07-16 17:36:47 err=-1, [Microsoft][ODBC SQL Server Driver][SQL Server]Transaction (Process ID 69) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction., SQL STATE: 40001, NATIVE ERROR: 1205 (0x4B5)
2014-07-16 20:06:33 err=-1, [Microsoft][ODBC SQL Server Driver][SQL Server]Transaction (Process ID 68) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction., SQL STATE: 40001, NATIVE ERROR: 1205 (0x4B5)
2014-07-16 20:06:38 err=-1, [Microsoft][ODBC SQL Server Driver][SQL Server]Transaction (Process ID 69) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction., SQL STATE: 40001, NATIVE ERROR: 1205 (0x4B5)
2014-07-16 20:06:41 err=-1, [Microsoft][ODBC SQL Server Driver][SQL Server]Transaction (Process ID 67) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction., SQL STATE: 40001, NATIVE ERROR: 1205 (0x4B5)
2014-07-16 20:06:42 err=-1, [Microsoft][ODBC SQL Server Driver][SQL Server]Transaction (Process ID 69) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction., SQL STATE: 40001, NATIVE ERROR: 1205 (0x4B5)
2014-07-16 20:06:43 err=-1, [Microsoft][ODBC SQL Server Driver][SQL Server]Transaction (Process ID 68) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction., SQL STATE: 40001, NATIVE ERROR: 1205 (0x4B5)
2014-07-16 20:06:43 err=-1, [Microsoft][ODBC SQL Server Driver][SQL Server]Transaction (Process ID 69) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction., SQL STATE: 40001, NATIVE ERROR: 1205 (0x4B5)
2014-07-16 20:06:43 err=-1, [Microsoft][ODBC SQL Server Driver][SQL Server]Transaction (Process ID 69) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction., SQL STATE: 40001, NATIVE ERROR: 1205 (0x4B5)
2014-07-16 20:06:43 err=-1, [Microsoft][ODBC SQL Server Driver][SQL Server]Transaction (Process ID 68) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction., SQL STATE: 40001, NATIVE ERROR: 1205 (0x4B5)
2014-07-16 20:06:50 err=-1, [Microsoft][ODBC SQL Server Driver][SQL Server]Transaction (Process ID 70) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction., SQL STATE: 40001, NATIVE ERROR: 1205 (0x4B5)
2014-07-16 20:06:55 err=-1, [Microsoft][ODBC SQL Server Driver][SQL Server]Transaction (Process ID 68) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction., SQL STATE: 40001, NATIVE ERROR: 1205 (0x4B5)
2014-07-16 20:06:57 err=-1, [Microsoft][ODBC SQL Server Driver][SQL Server]Transaction (Process ID 70) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction., SQL STATE: 40001, NATIVE ERROR: 1205 (0x4B5)
2014-07-16 20:06:59 err=-1, [Microsoft][ODBC SQL Server Driver][SQL Server]Transaction (Process ID 68) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction., SQL STATE: 40001, NATIVE ERROR: 1205 (0x4B5)
2014-07-16 20:06:59 err=-1, [Microsoft][ODBC SQL Server Driver][SQL Server]Transaction (Process ID 69) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction., SQL STATE: 40001, NATIVE ERROR: 1205 (0x4B5)
2014-07-16 20:07:03 err=-1, [Microsoft][ODBC SQL Server Driver][SQL Server]Transaction (Process ID 67) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction., SQL STATE: 40001, NATIVE ERROR: 1205 (0x4B5)
2014-07-16 20:07:03 err=-1, [Microsoft][ODBC SQL Server Driver][SQL Server]Transaction (Process ID 67) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction., SQL STATE: 40001, NATIVE ERROR: 1205 (0x4B5)
2014-07-16 20:07:06 err=-1, [Microsoft][ODBC SQL Server Driver][SQL Server]Transaction (Process ID 69) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction., SQL STATE: 40001, NATIVE ERROR: 1205 (0x4B5)
2014-07-16 20:07:08 err=-1, [Microsoft][ODBC SQL Server Driver][SQL Server]Transaction (Process ID 70) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction., SQL STATE: 40001, NATIVE ERROR: 1205 (0x4B5)
2014-07-16 20:07:08 err=-1, [Microsoft][ODBC SQL Server Driver][SQL Server]Transaction (Process ID 68) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction., SQL STATE: 40001, NATIVE ERROR: 1205 (0x4B5)
2014-07-16 20:22:00 err=-1, [Microsoft][ODBC SQL Server Driver][SQL Server]Transaction (Process ID 68) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction., SQL STATE: 40001, NATIVE ERROR: 1205 (0x4B5)
2014-07-16 20:22:05 err=-1, [Microsoft][ODBC SQL Server Driver][SQL Server]Transaction (Process ID 68) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction., SQL STATE: 40001, NATIVE ERROR: 1205 (0x4B5)
2014-07-16 20:22:08 err=-1, [Microsoft][ODBC SQL Server Driver][SQL Server]Transaction (Process ID 70) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction., SQL STATE: 40001, NATIVE ERROR: 1205 (0x4B5)
Edit:
Already Fixed. I found help on microsoft site. The problem probably was in procedure Save Char Info E that had two update(2nd was for kills/deaths) and it causes deadlocks. Also added to the update "UPDATE Chars WITH(XLOCK)" All procedure is here:
PHP Code:
USE [PS_GameData] GO /****** Object: StoredProcedure [dbo].[usp_Save_Char_Info_E] Script Date: 07/18/2014 15:10:40 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO
IF (ISNumeric(@Posx) = 1 and ISNumeric(@Posy) = 1 and ISNumeric(@Posz) = 1) BEGIN SET @PosxR = CAST(@Posx as real) SET @PosyR = CAST(@Posy as real) SET @PoszR = CAST(@Posz as real) END ELSE BEGIN
SET @Map = 42 SET @PosxR = 66.5 SET @PosYR = 2.0 SET @PosZR = 52.6 END
UPDATE Chars WITH(XLOCK) SET [Level] = @Level, StatPoint = @StatPoint, SkillPoint = @SkillPoint, [Str] = @Str, dex = @Dex, Rec = @Rec, [int] = @Int, Wis = @Wis, Luc = @Luc, HP = @Hp, Mp = @Mp, Sp = @Sp, Map = @Map, dir = @Dir, [exp] = @Exp, [money] = @Money, PosX = @Posx, PosY = @PosY, PosZ = @PosZ, hg = @Hg, vg = @Vg, cg = @Cg, og = @Og, ig = @Ig, KillLevel=@KillLevel, DeadLevel=@DeadLevel,LeaveDate=GETDATE(), K1 = CASE WHEN @K1 IS NOT NULL THEN @K1 ELSE K1 END, K2 = CASE WHEN @K2 IS NOT NULL THEN @K2 ELSE K2 END, K3 = CASE WHEN @K3 IS NOT NULL THEN @K3 ELSE K3 END, K4 = CASE WHEN @K4 IS NOT NULL THEN @K4 ELSE K4 END WHERE CharID = @CharID
IF(@@ERROR = 0 AND @@ROWCOUNT = 1) BEGIN RETURN 1 END ELSE BEGIN RETURN -1 END
Thanks. I executed that. As I said the problem is somtimes, last DCs was yesterday at 20:06 - 20:07, 20:22 and as the log show players get dc on the same time but not all time. Currently the server is enabled since before yesterday(without restart I mean). BTW does the sql 2008 R2 32 bit on windows server 2008 R2 64 bit can cause these problems?
2014-07-16 17:36:37 err=-1, [Microsoft][ODBC SQL Server Driver][SQL Server]Transaction (Process ID 69) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction., SQL STATE: 40001, NATIVE ERROR: 1205 (0x4B5)
2014-07-16 17:36:42 err=-1, [Microsoft][ODBC SQL Server Driver][SQL Server]Transaction (Process ID 70) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction., SQL STATE: 40001, NATIVE ERROR: 1205 (0x4B5)
2014-07-16 17:36:44 err=-1, [Microsoft][ODBC SQL Server Driver][SQL Server]Transaction (Process ID 67) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction., SQL STATE: 40001, NATIVE ERROR: 1205 (0x4B5)
2014-07-16 17:36:45 err=-1, [Microsoft][ODBC SQL Server Driver][SQL Server]Transaction (Process ID 70) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction., SQL STATE: 40001, NATIVE ERROR: 1205 (0x4B5)
2014-07-16 17:36:46 err=-1, [Microsoft][ODBC SQL Server Driver][SQL Server]Transaction (Process ID 68) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction., SQL STATE: 40001, NATIVE ERROR: 1205 (0x4B5)
2014-07-16 17:36:46 err=-1, [Microsoft][ODBC SQL Server Driver][SQL Server]Transaction (Process ID 68) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction., SQL STATE: 40001, NATIVE ERROR: 1205 (0x4B5)
2014-07-16 17:36:46 err=-1, [Microsoft][ODBC SQL Server Driver][SQL Server]Transaction (Process ID 67) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction., SQL STATE: 40001, NATIVE ERROR: 1205 (0x4B5)
2014-07-16 17:36:46 err=-1, [Microsoft][ODBC SQL Server Driver][SQL Server]Transaction (Process ID 68) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction., SQL STATE: 40001, NATIVE ERROR: 1205 (0x4B5)
2014-07-16 17:36:47 err=-1, [Microsoft][ODBC SQL Server Driver][SQL Server]Transaction (Process ID 69) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction., SQL STATE: 40001, NATIVE ERROR: 1205 (0x4B5)
2014-07-16 17:36:47 err=-1, [Microsoft][ODBC SQL Server Driver][SQL Server]Transaction (Process ID 70) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction., SQL STATE: 40001, NATIVE ERROR: 1205 (0x4B5)
2014-07-16 17:36:47 err=-1, [Microsoft][ODBC SQL Server Driver][SQL Server]Transaction (Process ID 69) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction., SQL STATE: 40001, NATIVE ERROR: 1205 (0x4B5)
2014-07-16 20:06:33 err=-1, [Microsoft][ODBC SQL Server Driver][SQL Server]Transaction (Process ID 68) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction., SQL STATE: 40001, NATIVE ERROR: 1205 (0x4B5)
2014-07-16 20:06:38 err=-1, [Microsoft][ODBC SQL Server Driver][SQL Server]Transaction (Process ID 69) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction., SQL STATE: 40001, NATIVE ERROR: 1205 (0x4B5)
2014-07-16 20:06:41 err=-1, [Microsoft][ODBC SQL Server Driver][SQL Server]Transaction (Process ID 67) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction., SQL STATE: 40001, NATIVE ERROR: 1205 (0x4B5)
2014-07-16 20:06:42 err=-1, [Microsoft][ODBC SQL Server Driver][SQL Server]Transaction (Process ID 69) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction., SQL STATE: 40001, NATIVE ERROR: 1205 (0x4B5)
2014-07-16 20:06:43 err=-1, [Microsoft][ODBC SQL Server Driver][SQL Server]Transaction (Process ID 68) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction., SQL STATE: 40001, NATIVE ERROR: 1205 (0x4B5)
2014-07-16 20:06:43 err=-1, [Microsoft][ODBC SQL Server Driver][SQL Server]Transaction (Process ID 69) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction., SQL STATE: 40001, NATIVE ERROR: 1205 (0x4B5)
2014-07-16 20:06:43 err=-1, [Microsoft][ODBC SQL Server Driver][SQL Server]Transaction (Process ID 69) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction., SQL STATE: 40001, NATIVE ERROR: 1205 (0x4B5)
2014-07-16 20:06:43 err=-1, [Microsoft][ODBC SQL Server Driver][SQL Server]Transaction (Process ID 68) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction., SQL STATE: 40001, NATIVE ERROR: 1205 (0x4B5)
2014-07-16 20:06:50 err=-1, [Microsoft][ODBC SQL Server Driver][SQL Server]Transaction (Process ID 70) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction., SQL STATE: 40001, NATIVE ERROR: 1205 (0x4B5)
2014-07-16 20:06:55 err=-1, [Microsoft][ODBC SQL Server Driver][SQL Server]Transaction (Process ID 68) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction., SQL STATE: 40001, NATIVE ERROR: 1205 (0x4B5)
2014-07-16 20:06:57 err=-1, [Microsoft][ODBC SQL Server Driver][SQL Server]Transaction (Process ID 70) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction., SQL STATE: 40001, NATIVE ERROR: 1205 (0x4B5)
2014-07-16 20:06:59 err=-1, [Microsoft][ODBC SQL Server Driver][SQL Server]Transaction (Process ID 68) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction., SQL STATE: 40001, NATIVE ERROR: 1205 (0x4B5)
2014-07-16 20:06:59 err=-1, [Microsoft][ODBC SQL Server Driver][SQL Server]Transaction (Process ID 69) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction., SQL STATE: 40001, NATIVE ERROR: 1205 (0x4B5)
2014-07-16 20:07:03 err=-1, [Microsoft][ODBC SQL Server Driver][SQL Server]Transaction (Process ID 67) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction., SQL STATE: 40001, NATIVE ERROR: 1205 (0x4B5)
2014-07-16 20:07:03 err=-1, [Microsoft][ODBC SQL Server Driver][SQL Server]Transaction (Process ID 67) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction., SQL STATE: 40001, NATIVE ERROR: 1205 (0x4B5)
2014-07-16 20:07:06 err=-1, [Microsoft][ODBC SQL Server Driver][SQL Server]Transaction (Process ID 69) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction., SQL STATE: 40001, NATIVE ERROR: 1205 (0x4B5)
2014-07-16 20:07:08 err=-1, [Microsoft][ODBC SQL Server Driver][SQL Server]Transaction (Process ID 70) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction., SQL STATE: 40001, NATIVE ERROR: 1205 (0x4B5)
2014-07-16 20:07:08 err=-1, [Microsoft][ODBC SQL Server Driver][SQL Server]Transaction (Process ID 68) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction., SQL STATE: 40001, NATIVE ERROR: 1205 (0x4B5)
2014-07-16 20:22:00 err=-1, [Microsoft][ODBC SQL Server Driver][SQL Server]Transaction (Process ID 68) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction., SQL STATE: 40001, NATIVE ERROR: 1205 (0x4B5)
2014-07-16 20:22:05 err=-1, [Microsoft][ODBC SQL Server Driver][SQL Server]Transaction (Process ID 68) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction., SQL STATE: 40001, NATIVE ERROR: 1205 (0x4B5)
2014-07-16 20:22:08 err=-1, [Microsoft][ODBC SQL Server Driver][SQL Server]Transaction (Process ID 70) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction., SQL STATE: 40001, NATIVE ERROR: 1205 (0x4B5)
Edit:
Already Fixed. I found help on microsoft site. The problem probably was in procedure Save Char Info E that had two update(2nd was for kills/deaths) and it causes deadlocks. Also added to the update "UPDATE Chars WITH(XLOCK)" All procedure is here:
PHP Code:
USE [PS_GameData]
GO
/****** Object: StoredProcedure [dbo].[usp_Save_Char_Info_E] Script Date: 07/18/2014 15:10:40 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF (ISNumeric(@Posx) = 1 and ISNumeric(@Posy) = 1 and ISNumeric(@Posz) = 1)
BEGIN
SET @PosxR = CAST(@Posx as real)
SET @PosyR = CAST(@Posy as real)
SET @PoszR = CAST(@Posz as real)
END
ELSE
BEGIN
SET @Map = 42
SET @PosxR = 66.5
SET @PosYR = 2.0
SET @PosZR = 52.6
END
UPDATE Chars WITH(XLOCK)
SET [Level] = @Level, StatPoint = @StatPoint, SkillPoint = @SkillPoint,
[Str] = @Str, dex = @Dex, Rec = @Rec, [int] = @Int, Wis = @Wis, Luc = @Luc,
HP = @Hp, Mp = @Mp, Sp = @Sp,
Map = @Map, dir = @Dir, [exp] = @Exp, [money] = @Money,
PosX = @Posx, PosY = @PosY, PosZ = @PosZ, hg = @Hg, vg = @Vg, cg = @Cg, og = @Og, ig = @Ig,
KillLevel=@KillLevel, DeadLevel=@DeadLevel,LeaveDate=GETDATE(),
K1 = CASE WHEN @K1 IS NOT NULL THEN @K1 ELSE K1 END,
K2 = CASE WHEN @K2 IS NOT NULL THEN @K2 ELSE K2 END,
K3 = CASE WHEN @K3 IS NOT NULL THEN @K3 ELSE K3 END,
K4 = CASE WHEN @K4 IS NOT NULL THEN @K4 ELSE K4 END
WHERE CharID = @CharID
IF(@@ERROR = 0 AND @@ROWCOUNT = 1)
BEGIN
RETURN 1
END
ELSE
BEGIN
RETURN -1
END
my metin2 pvp server players bug problem 09/02/2010 - Metin2 Private Server - 15 Replies hello epvp i have a problem
The map is not the players are staying with wheat
how can I fix it problem..
Waiting for your reply
How to make SV DC on all players 05/19/2007 - Conquer Online 2 - 16 Replies as the topic says, how to make SV disconnect on every player? at the moment I can only write down names of when you see them you disconnect, but to make it more safe, I want to make it dc on all players
How to do that?
text2schild.php?smilienummer=1&text=Help Appreciated, and karma awarded =D' border='0' alt='Help Appreciated, and karma awarded =D' />