|
You last visited: Today at 08:37
Advertisement
error 0
Discussion on error 0 within the Shaiya forum part of the MMORPGs category.
02/17/2011, 20:02
|
#16
|
elite*gold: 0
Join Date: Oct 2009
Posts: 262
Received Thanks: 812
|
Can you paste you usp_Save_User_BuyPointItems_NCash stored procedure here and wrap it in code tags?
|
|
|
02/17/2011, 20:05
|
#17
|
elite*gold: 0
Join Date: Jan 2011
Posts: 120
Received Thanks: 74
|
That is that I have in this file
Quote:
set ANSI_NULLS ON
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,ProductCo de,UseDate)
VALUES(@UseType,@UserUID,@CharID,@UsePoint,@Produc tCode,@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/17/2011, 20:20
|
#18
|
elite*gold: 0
Join Date: Oct 2009
Posts: 262
Received Thanks: 812
|
Is anything underlined in red?
Also these have same random spaces in them:
Code:
INSERT INTO PointLog(UseType,UserUID,CharID,UsePoint,ProductCo de,UseDate)
VALUES(@UseType,@UserUID,@CharID,@UsePoint,@Produc tCode,@UseDate)
|
|
|
02/17/2011, 20:33
|
#19
|
elite*gold: 0
Join Date: Jan 2011
Posts: 120
Received Thanks: 74
|
nothing is said or written in red
there was just one error in pink
|
|
|
02/17/2011, 20:39
|
#20
|
elite*gold: 0
Join Date: Oct 2009
Posts: 262
Received Thanks: 812
|
Quote:
Originally Posted by topazee
nothing is said or written in red
there was just one error in pink

|
That's not actually an error, it's just a built in function for SQL Server.
Do you get an error when you run this query, or does it work successfully?
Code:
INSERT INTO PointLog(UseType,UserUID,CharID,UsePoint,ProductCode,UseDate)
VALUES(1,1,3,349,'AC_1000 75_1','2011-02-17 19:41:38')
|
|
|
02/17/2011, 20:41
|
#21
|
elite*gold: 0
Join Date: Jan 2011
Posts: 120
Received Thanks: 74
|
just when I buy an item in item mall that gives me an error 0
when I go see my log its giving me this error
|
|
|
02/17/2011, 20:43
|
#22
|
elite*gold: 0
Join Date: Jan 2011
Posts: 120
Received Thanks: 74
|
just when I buy an item in item mall that gives me an error 0
when I go see my log its giving me this error
|
|
|
02/17/2011, 20:46
|
#23
|
elite*gold: 0
Join Date: Oct 2009
Posts: 262
Received Thanks: 812
|
Ok, but did you try running that query?
|
|
|
02/17/2011, 20:51
|
#24
|
elite*gold: 0
Join Date: Jan 2011
Posts: 120
Received Thanks: 74
|
this requete?
Quote:
set ANSI_NULLS ON
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,ProductCo de,UseDate)
VALUES(@UseType,@UserUID,@CharID,@UsePoint,@Produc tCode,@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/17/2011, 20:55
|
#25
|
elite*gold: 0
Join Date: Oct 2009
Posts: 262
Received Thanks: 812
|
No, this query I asked you to run and tell me what happend:
Code:
INSERT INTO PointLog(UseType,UserUID,CharID,UsePoint,ProductCode,UseDate)
VALUES(1,1,3,349,'AC_1000 75_1','2011-02-17 19:41:38')
|
|
|
02/17/2011, 20:59
|
#26
|
elite*gold: 0
Join Date: Jan 2011
Posts: 120
Received Thanks: 74
|
j 'is code inserted new query?
Quote:
INSERT INTO PointLog (UseType, UserUID, Charid, UsePoint, ProductCode, UseDate)
VALUES (1,1,3,349 'AC_1000 75_1', '2011-02-17 7:41:38 p.m. ')
|
sorry I'm beginner
|
|
|
02/17/2011, 21:09
|
#27
|
elite*gold: 0
Join Date: Oct 2009
Posts: 262
Received Thanks: 812
|
I don't understand your question.
I wanted you to click on New Query and paste this in and execute it:
Code:
INSERT INTO PointLog (UseType, UserUID, Charid, UsePoint, ProductCode, UseDate)
VALUES (1,1,3,349 'AC_1000 75_1', '2011-02-17 7:41:38 p.m. ')
Then let me know if it returns an error or not
|
|
|
02/17/2011, 21:13
|
#28
|
elite*gold: 0
Join Date: Jan 2011
Posts: 120
Received Thanks: 74
|
Quote:
Originally Posted by abrasive
I don't understand your question.
I wanted you to click on New Query and paste this in and execute it:
Code:
INSERT INTO PointLog (UseType, UserUID, Charid, UsePoint, ProductCode, UseDate)
VALUES (1,1,3,349 'AC_1000 75_1', '2011-02-17 7:41:38 p.m. ')
Then let me know if it returns an error or not
|
Msg 102, Level 15, State 1, Line 2
Syntaxe incorrecte vers 'AC_1000 75_1'.
|
|
|
02/17/2011, 21:15
|
#29
|
elite*gold: 0
Join Date: Oct 2009
Posts: 262
Received Thanks: 812
|
Opps, I meant this one:
Code:
INSERT INTO PointLog(UseType,UserUID,CharID,UsePoint,ProductCode,UseDate)
VALUES(1,1,3,349,'AC_1000 75_1','2011-02-17 19:41:38')
|
|
|
02/17/2011, 21:19
|
#30
|
elite*gold: 0
Join Date: Jan 2011
Posts: 120
Received Thanks: 74
|
Msg 242, Level 16, State 3, Line 1
La conversion d'un type de données CHAR en type DATETIME a donné une valeur hors limite de date et d'heure.
L'instruction a été arrêtée.
|
|
|
All times are GMT +1. The time now is 08:39.
|
|