|
You last visited: Today at 15:02
Advertisement
Some Errors in SQL
Discussion on Some Errors in SQL within the Shaiya Private Server forum part of the Shaiya category.
02/13/2012, 12:08
|
#1
|
elite*gold: 6
Join Date: Oct 2011
Posts: 914
Received Thanks: 421
|
Some Errors in SQL
Code:
err=-1, [Microsoft][ODBC SQL Server Driver][SQL Server]Fehler beim Konvertieren des varchar-Datentyps in datetime., SQL STATE: 42000, NATIVE ERROR: 8114 (0x1FB2)
SaveBuyPointItem 45 *CENSORED* qerr=0, {?=call usp_Save_User_BuyPointItems_NCash(16,45,0,'Brilliant','2012-02-13 11:42:34')}
Ist im PS_DBAGENT__system.log__* zu finden...
Der Fehler tritt aber nur auf bei kauf von AP Items.
Ein anderer Bug ist:
dc-rollback ( Nach dem DC der Spieler ist ein Rollback )
char erstellung ( Bei Char erstellung DC error 0 )
The error occurs only when buy AP items.
Another bug:
dc-rollback (After DC, players got a roll back)
char creation ( after char creation DC error 0 )
|
|
|
02/13/2012, 13:22
|
#2
|
elite*gold: 0
Join Date: Sep 2010
Posts: 520
Received Thanks: 1,289
|
Check that SP in PS_GameData. Something is wrong with it. I'd check the last value, make sure the Parameter is set to datetime not varchar.
|
|
|
02/13/2012, 13:38
|
#3
|
elite*gold: 6
Join Date: Oct 2011
Posts: 914
Received Thanks: 421
|
This is my SP:
Code:
USE [PS_GameData]
GO
/****** Object: StoredProcedure [dbo].[usp_Save_User_BuyPointItems_NCash] Script Date: 02/13/2012 13:37:49 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER Proc [dbo].[usp_Save_User_BuyPointItems_NCash]
@UserUID int,
@CharID int,
@UsePoint int,
@ProductCode varchar(20),
@UseDate datetime
AS
SET NOCOUNT ON
SET XACT_ABORT ON
DECLARE @UseType int
DECLARE @ReturnValue int
SET @UseType = 1 -- 掘衙
BEGIN DISTRIBUTED TRANSACTION
EXEC @ReturnValue = PS_UserData.dbo.usp_Update_UserPoint @UserUID, @UsePoint
IF ( @ReturnValue < 0 )
BEGIN
GOTO ERROR
END
-- 檣 離馬(Old, 夥煎 UPDATE僥 陳塒唳辦 醴憮纂陛 號檜 橾橫陴)
--UPDATE PS_UserData.dbo.Users_Master SET Point=Point-@UsePoint WHERE UserUID=@UserUID
--IF( @@ERROR<>0 OR @@ROWCOUNT=0)
--BEGIN
-- GOTO ERROR
--END
-- 檣 煎斜 晦煙
INSERT INTO PointLog(UseType,UserUID,CharID,UsePoint,ProductCode,UseDate)
VALUES(@UseType,@UserUID,@CharID,@UsePoint,@ProductCode,@UseDate)
IF( @@ERROR<>0)
BEGIN
GOTO ERROR
END
COMMIT TRAN
RETURN 1
ERROR:
ROLLBACK TRAN
RETURN -1
SET XACT_ABORT OFF
SET NOCOUNT OFF
|
|
|
02/13/2012, 13:46
|
#4
|
elite*gold: 0
Join Date: Sep 2010
Posts: 520
Received Thanks: 1,289
|
Sorry, I ran that in my own database, and executed it. No problems.
Try this on your own database:
PHP Code:
EXEC PS_GameData.dbo.usp_Save_User_BuyPointItems_NCash 16,45,0,'Brilliant','2012-02-13 11:42:34'
|
|
|
02/13/2012, 13:54
|
#5
|
elite*gold: 6
Join Date: Oct 2011
Posts: 914
Received Thanks: 421
|
Quote:
Originally Posted by RebeccaBlack
Sorry, I ran that in my own database, and executed it. No problems.
Try this on your own database:
PHP Code:
EXEC PS_GameData.dbo.usp_Save_User_BuyPointItems_NCash 16,45,0,'Brilliant','2012-02-13 11:42:34'
|
Successful, but this error occurs at some more Items and at character creation the players get a DC..
|
|
|
02/13/2012, 15:48
|
#6
|
elite*gold: 0
Join Date: Jan 2011
Posts: 160
Received Thanks: 253
|
Kann es sein, dass du die deutsche Version des SQL-Servers installiert hast? Man achte auf das Datum: 13.
Siehe:
|
|
|
02/13/2012, 16:03
|
#7
|
elite*gold: 6
Join Date: Oct 2011
Posts: 914
Received Thanks: 421
|
Ja ist installiert.. kommt man um die neuinstallation von sql rum ?
|
|
|
02/13/2012, 19:21
|
#8
|
elite*gold: 0
Join Date: Sep 2010
Posts: 520
Received Thanks: 1,289
|
Nevermind. A good and smart friend (castor) corrected me. The error IS the datetime column. You need to modify the SP so that the parameter is varchar. Then extract from that and create the datetime variable.
|
|
|
02/13/2012, 20:31
|
#9
|
elite*gold: 6
Join Date: Oct 2011
Posts: 914
Received Thanks: 421
|
*FIXED* with english SQL Instance
|
|
|
 |
Similar Threads
|
hp errors
01/13/2012 - Flyff Private Server - 8 Replies
Hallo Leute ich hab ein Root habe alle sachen installiert nur jetzt kommen solche errors auf der seite *removed*
bitte um hilfe :(
icq: 395199844
Skype: xkeeviin96x
|
C# Errors
09/22/2011 - .NET Languages - 6 Replies
Moin,
also ich habe mir von einem Game eine C# Engine runtergeladen.
Ich habe momentan 0 Ahnung von C#.. aber in laufe der Zeit verstehe ich auch die Begriffe.
Nun ein paar Fragen: ich bekomme 3 Errors.. die ich nicht weg bekomme.
Bei dem TNT Error hab ich k.A. was daran falsch ist, genauso wie bei den anderen 2.
Aber bei den anderen 2en steht ja ich habe kein Namespace gesetzt.. obwohl das getan ist.
http://s1.directupload.net/images/110920/6go45c7x .png
Kann mir jemand per TV helfen?
|
[Guide] 2 Fixes on Sro-Errors (no bot-errors)
03/04/2011 - SRO Guides & Templates - 5 Replies
Hey guys,
here are 2 fixes for silkroad-errors (not bot-errors!). I know they dont appear for many people but some guys have problems with it.
1st Fix: "Server is undergoing inspection..."
Why does this error appear?
Because Joymax has some problems with the Login-Servers.
Fix:
Step1): Click on "Start" then on "Run"
|
Errors
02/27/2010 - World of Warcraft - 2 Replies
Hi wenn ich micht mit dem acc beim pserver einlogge dann bekomem ich imemr nen error. HAtte gesterns chon das prob dann habe ich wow neu installiert und dann ging es wieder bis heut' mittag. Dann war ich kurz off dann fing das prob wieder von vorne an!! Weiß einer wie ich alles wieder zum laufen bekomme?
Mfg
Gibt natürlich nen Thanks.
€dit: Und es passiert nur bei dem einen Acc. Allerding wenn ich aufm anderen acc meinen hunter zocke und nen pet attacke dann auch error. Aber beim...
|
Help with some errors
02/09/2010 - Shaiya - 1 Replies
Hi, i wanted to ask someone to help me with this things...
Everytime I try to open some bots or tools made by lilprohacker (btw thanks for your great job in the forum) i get the same error: 'The application failed to initialize properly (0x0000135). Click on OK to terminate the application'.
Does anyone know how to fix this?
|
All times are GMT +1. The time now is 15:02.
|
|