•         

            

            

  • HyperFilter | DoS Protection | DDoS Protection | DoS Mitigation | DDoS Mitigation | AntiDoS | AntiDDoS | Proxy Shielding

[Sorun] Failed Creating Database Hatası [Yardım]

  • Konbuyu başlatan Konbuyu başlatan cruis
  • Başlangıç tarihi Başlangıç tarihi

cruis

Kayıtlı Üye
Katılım
15 Aralık 2012
Mesajlar
76
QR8AQv.jpg




Resimde ki hatayı almaktayım çözümünü bilen var mı ? lütfen db değiştir harici yazacaklar yazsın.



Version 1299 / SQL Server r2 2008 x64



Denediğim yöntemler query analyzere kod girdim. Yararı olmadı



Kod:
ALTER PROCEDURE CREATE_NEW_CHAR



@nRet	 smallint OUTPUT, 

@AccountID char(21), 

@index tinyint,

@CharID	char(21),

@Race tinyint, 

@class smallint, 

@Hair tinyint,

@Face tinyint, 

@Str tinyint, 

@Sta tinyint, 

@Dex tinyint,

@Intel tinyint, 

@Cha tinyint



AS



DECLARE @Row tinyint, @Nation tinyint, @zone tinyint, @PosX int, @PosZ int

SET @Row = 0	SET @Nation = 0 SET zone = 0 SET @PosX = 0 SET @PosZ = 0



SELECT @Nation = bNation, @Row = bCharNum FROM ACCOUNT_CHAR WHERE strAccountID = @AccountID



IF @Row >= 5	SET @nRet = 1



IF @Nation = 1 AND @Race > 10	SET @nRet = 2

ELSE IF @Nation = 2 AND @Race < 10	SET @nRet = 2

ELSE IF @Nation <>1 AND @Nation <> 2	SET @nRet = 2



IF @nRet > 0

RETURN



SELECT @Row = COUNT(*) FROM USERDATA WHERE strUserId = @CharID

IF @Row > 0 

BEGIN

SET @nRet = 3

RETURN

END



--SET zone = @Nation

SET zone =21

SELECT @PosX = InitX, @PosZ = InitZ FROM ZONE_INFO WHERE ZoneNo = zone



BEGIN TRAN	

IF @index = 0

UPDATE ACCOUNT_CHAR SET strCharID1 = @CharID, bCharNum = bCharNum + 1 WHERE strAccountID = @AccountID

ELSE IF @index = 1

UPDATE ACCOUNT_CHAR SET strCharID2 = @CharID, bCharNum = bCharNum + 1 WHERE strAccountID = @AccountID

ELSE IF @index = 2

UPDATE ACCOUNT_CHAR SET strCharID3 = @CharID, bCharNum = bCharNum + 1 WHERE strAccountID = @AccountID

ELSE IF @index = 3

UPDATE ACCOUNT_CHAR SET strCharID4 = @CharID, bCharNum = bCharNum + 1 WHERE strAccountID = @AccountID

ELSE IF @index = 4

UPDATE ACCOUNT_CHAR SET strCharID5 = @CharID, bCharNum = bCharNum + 1 WHERE strAccountID = @AccountID





INSERT INTO USERDATA (strUserId, Nation, Race, Class, HairColor, Face, Strong, Sta, Dex, Intel, Cha, Zone, PX, PZ ) 

VALUES	 (@CharID, @Nation, @Race, @class, @Hair, @Face, @Str, @Sta, @Dex, @Intel, @Cha, @zone, @PosX, @PosZ )





IF @@ERROR <> 0

BEGIN	

ROLLBACK TRAN 

SET @nRet = 4

RETURN

END



COMMIT TRAN

SET @nRet = 0

GO



Databasenin loglarını kayıt ettiği logical name değiştirdim işe yaramadı.
 
Cevap: [Sorun] Failed Creating Database Hatası [Yardım]



CREATE PROCEDURE CREATE_NEW_CHAR



@nRet smallint OUTPUT,

@AccountID char(21),

@index tinyint,

@CharID char(21),

@Race tinyint,

@Class smallint,

@Hair tinyint,

@Face tinyint,

@Str tinyint,

@Sta tinyint,

@Dex tinyint,

@Intel tinyint,

@Cha tinyint



AS



DECLARE @Row tinyint, @Nation tinyint, @Zone tinyint, @PosX int, @PosZ int

SET @Row = 0 SET @Nation = 0 SET @Zone = 0 SET @PosX = 0 SET @PosZ = 0



SELECT @Nation = bNation, @Row = bCharNum FROM ACCOUNT_CHAR WHERE strAccountID = @AccountID



IF @Row >= 5 SET @nRet = 1



IF @Nation = 1 AND @Race > 10 SET @nRet = 2

ELSE IF @Nation = 2 AND @Race < 10 SET @nRet = 2

ELSE IF @Nation <>1 AND @Nation <> 2 SET @nRet = 2



IF @nRet > 0

RETURN



SELECT @Row = COUNT(*) FROM USERDATA WHERE strUserId = @CharID

IF @Row > 0

BEGIN

SET @nRet = 3

RETURN

END



--SET @Zone = @Nation

SET @Zone=21

SELECT @PosX = InitX, @PosZ = InitZ FROM ZONE_INFO WHERE ZoneNo = @Zone



IF dbo.FreeManTR(@CharID) = 1

BEGIN

SET @nRet = 3

RETURN

END



BEGIN TRAN

IF @index = 0

UPDATE ACCOUNT_CHAR SET strCharID1 = @CharID, bCharNum = bCharNum + 1 WHERE strAccountID = @AccountID

ELSE IF @index = 1

UPDATE ACCOUNT_CHAR SET strCharID2 = @CharID, bCharNum = bCharNum + 1 WHERE strAccountID = @AccountID

ELSE IF @index = 2

UPDATE ACCOUNT_CHAR SET strCharID3 = @CharID, bCharNum = bCharNum + 1 WHERE strAccountID = @AccountID

ELSE IF @index = 3

UPDATE ACCOUNT_CHAR SET strCharID4 = @CharID, bCharNum = bCharNum + 1 WHERE strAccountID = @AccountID

ELSE IF @index = 4

UPDATE ACCOUNT_CHAR SET strCharID5 = @CharID, bCharNum = bCharNum + 1 WHERE strAccountID = @AccountID



INSERT INTO USERDATA (strUserId, Nation, Race, Class, HairColor, Face, Strong, Sta, Dex, Intel, Cha, Zone, PX, PZ )

VALUES (@CharID, @Nation, @Race, @Class, @Hair, @Face, @Str, @Sta, @Dex, @Intel, @Cha, @Zone, @PosX, @PosZ )

-- 83 Level Altı Mute Başlangıç Created By ZaGoR Oto üyelik gm login fix

UPDATE USERDATA Set Authority = '11' where strUserID = @CharID

-- 83 level altı mute Bitiş Created By ZaGoR Oto üyelik gm login fix

exec baslangicitem @CharID



IF @@ERROR <> 0

BEGIN

ROLLBACK TRAN

SET @nRet = 4

RETURN

END



COMMIT TRAN

SET @nRet = 0

GO
 
Cevap: [Sorun] Failed Creating Database Hatası [Yardım]



CREATE PROCEDURE CREATE_NEW_CHAR



@nRet smallint OUTPUT,

@AccountID char(21),

@index tinyint,

@CharID char(21),

@Race tinyint,

@Class smallint,

@Hair tinyint,

@Face tinyint,

@Str tinyint,

@Sta tinyint,

@Dex tinyint,

@Intel tinyint,

@Cha tinyint



AS



DECLARE @Row tinyint, @Nation tinyint, @Zone tinyint, @PosX int, @PosZ int

SET @Row = 0 SET @Nation = 0 SET @Zone = 0 SET @PosX = 0 SET @PosZ = 0



SELECT @Nation = bNation, @Row = bCharNum FROM ACCOUNT_CHAR WHERE strAccountID = @AccountID



IF @Row >= 5 SET @nRet = 1



IF @Nation = 1 AND @Race > 10 SET @nRet = 2

ELSE IF @Nation = 2 AND @Race < 10 SET @nRet = 2

ELSE IF @Nation <>1 AND @Nation <> 2 SET @nRet = 2



IF @nRet > 0

RETURN



SELECT @Row = COUNT(*) FROM USERDATA WHERE strUserId = @CharID

IF @Row > 0

BEGIN

SET @nRet = 3

RETURN

END



--SET @Zone = @Nation

SET @Zone=21

SELECT @PosX = InitX, @PosZ = InitZ FROM ZONE_INFO WHERE ZoneNo = @Zone



IF dbo.FreeManTR(@CharID) = 1

BEGIN

SET @nRet = 3

RETURN

END



BEGIN TRAN

IF @index = 0

UPDATE ACCOUNT_CHAR SET strCharID1 = @CharID, bCharNum = bCharNum + 1 WHERE strAccountID = @AccountID

ELSE IF @index = 1

UPDATE ACCOUNT_CHAR SET strCharID2 = @CharID, bCharNum = bCharNum + 1 WHERE strAccountID = @AccountID

ELSE IF @index = 2

UPDATE ACCOUNT_CHAR SET strCharID3 = @CharID, bCharNum = bCharNum + 1 WHERE strAccountID = @AccountID

ELSE IF @index = 3

UPDATE ACCOUNT_CHAR SET strCharID4 = @CharID, bCharNum = bCharNum + 1 WHERE strAccountID = @AccountID

ELSE IF @index = 4

UPDATE ACCOUNT_CHAR SET strCharID5 = @CharID, bCharNum = bCharNum + 1 WHERE strAccountID = @AccountID



INSERT INTO USERDATA (strUserId, Nation, Race, Class, HairColor, Face, Strong, Sta, Dex, Intel, Cha, Zone, PX, PZ )

VALUES (@CharID, @Nation, @Race, @Class, @Hair, @Face, @Str, @Sta, @Dex, @Intel, @Cha, @Zone, @PosX, @PosZ )

-- 83 Level Altı Mute Başlangıç Created By ZaGoR Oto üyelik gm login fix

UPDATE USERDATA Set Authority = '11' where strUserID = @CharID

-- 83 level altı mute Bitiş Created By ZaGoR Oto üyelik gm login fix

exec baslangicitem @CharID



IF @@ERROR <> 0

BEGIN

ROLLBACK TRAN

SET @nRet = 4

RETURN

END



COMMIT TRAN

SET @nRet = 0

GO



konuda yazdım zaten bu kodla olmuyor.



Msg 2714, Level 16, State 3, Procedure CREATE_NEW_CHAR, Line 77

There is already an object named 'CREATE_NEW_CHAR' in the database.



hatası veriyor.
 
Geri
Üst