DeathKO | v.24xx Light Farm | ORION | Beta: 17 Kasım | Official: 24 Kasım

"Failed Creating Database" Hatası Alıyorum Diyenler İçeri

D Çevrimdışı

Direnish

Kayıtlı Üye
4 Eylül 2012
493
3
16
31
Eminim SQL 2008'e Geçince Bu Hatadan Almışşsınızdır Yada Başka Database Denerken.



Bunun 2 Sebebi Vardır 1.Databasede Rules Kısmında Türkçe Karakter Engelleme Yada CREATE_NEW_CHAR Prosedüründendir.



Bunu Düzeltmek İçin


İçerik Açılmıştır Teşekkürler :)
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


Bu Kodu Query'e Yapıştırıp F5 Basmanız Yeterlidir.
 
S Çevrimdışı

selo18

Kayıtlı Üye
25 Aralık 2012
68
0
6
ben There is an error in the selected server. şu sorunu nasuıl cözücem
 
T Çevrimdışı

Torque

Kayıtlı Üye
7 Haziran 2013
296
0
16
28
Cevap: "Failed Creating Database" Hatası Alıyorum Diyenler İçeri



teşekkürler
 
D Çevrimdışı

donchez34

Kayıtlı Üye
12 Haziran 2013
92
0
6
34
Cevap: "Failed Creating Database" Hatası Alıyorum Diyenler İçeri



şu hatayı alıyorum



Server: Msg 170, Level 15, State 1, Procedure CREATE_NEW_CHAR, Line 20

Line 20: Incorrect syntax near '='.

Server: Msg 170, Level 15, State 1, Procedure CREATE_NEW_CHAR, Line 41

Line 41: Incorrect syntax near '='.