Hallo Leute ,da ich in letzter Zeit paar Adds in Skype bekommen habe und immer nach diesem Fehler gefragt wurde ,hier mal der Simple Fix dafür ...
Ihr geht in euer SQL Server Managment Studio.
Dort logt ihr euch wie gewohnt ein.
Ihr öffnet Character.DBF in einer Neuen Abfrage =
Anschließend kopiert ihr folgenden Text dort hinein:
PHP Code:
USE [CHARACTER_01_DBF] GO /****** Objet : StoredProcedure [dbo].[MAIL_STR_REALTIME] Date de génération du script : 10/28/2009 19:14:15 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO ALTER proc [dbo].[MAIL_STR_REALTIME]
@iGu CHAR(255), @serverindex CHAR(2), @nMail_Before INT = 0, @nMail_After INT = 0, @idPlayer CHAR(7) = '0000000', @nLevel INT = 0, @iaccount VARCHAR(32) = '', @tmCreate INT = 0, @dwSerialNumber INT = 0, @nHitPoint INT = 0 as set nocount on
declare @iserverindex char(2) set @iserverindex = cast((cast(@serverindex as int) + 50) as char(2))
IF @iGu = 'S1' BEGIN SELECT * FROM MAIL_TBL WHERE serverindex = @iserverindex AND byRead<90 ORDER BY nMail RETURN END ELSE IF @iGu = 'U1' BEGIN UPDATE MAIL_TBL SET nMail = @nMail_After, serverindex = @serverindex, dwSerialNumber = @dwSerialNumber, nHitPoint = @nHitPoint WHERE serverindex = @iserverindex and nMail = @nMail_Before RETURN END ELSE IF @iGu = 'I1' BEGIN
DECLARE @ItemID int DECLARE @ItemNum int DECLARE @bBinds int SET @ItemID = 0 SET @ItemNum = 1 SET @bBinds = 2
IF( @nLevel = 20 ) BEGIN SET @ItemID = 26112 END ELSE IF( @nLevel = 40 ) BEGIN SET @ItemID = 26211 END ELSE IF( @nLevel = 60 ) BEGIN SET @ItemID = 26103 END ELSE IF( @nLevel = 80 ) BEGIN SET @ItemID = 30135 END ELSE IF( @nLevel = 100 ) BEGIN SET @ItemID = 5800 SET @bBinds = 0 END ELSE IF( @nLevel = 120 ) BEGIN SET @ItemID = 4703 SET @bBinds = 0 END
IF( @ItemID = 0 ) BEGIN RETURN END
-- ?? ??? ?? ?? DECLARE @nMaxMailID int SELECT @nMaxMailID = MAX(nMail)+1 from MAIL_TBL where serverindex = @iserverindex SET @nMaxMailID = ISNULL( @nMaxMailID, 0 )
-- ??? ?? DECLARE @szTitle VARCHAR(128) DECLARE @szText VARCHAR(1024) SET @szTitle = 'Title' SET @szText = 'Text'
Statt der Prozedur ihre Funktion zu nehmen, könntest du auch einfach das Dateformat ändern...
Code:
ALTER proc [dbo].[MAIL_STR_REALTIME]
@iGu CHAR(2),
@serverindex CHAR(2),
@nMail_Before INT = 0,
@nMail_After INT = 0,
@idPlayer CHAR(7) = '0000000',
@nLevel INT = 0,
@iaccount VARCHAR(32) = '',
@tmCreate INT = 0,
@dwSerialNumber INT = 0,
@nHitPoint INT = 0
as
set nocount on
declare @sdate datetime
declare @edate datetime
declare @iserverindex char(2)
-- twilight edit START
set dateformat ymd
-- twilight edit END
set @sdate = '2007-07-18 00:00:00'--'2007-07-10 00:00:00' -- '2007-07-18 00:00:00'
set @edate = '2007-08-31 23:59:00'--'2007-07-10 23:00:00' -- '2007-08-31 23:59:00'
set @iserverindex = cast((cast(@serverindex as int) + 50) as char(2))
IF @iGu = 'S1'
BEGIN
SELECT * FROM MAIL_TBL
WHERE serverindex = @iserverindex AND byRead<90
ORDER BY nMail
RETURN
END
ELSE
IF @iGu = 'U1'
BEGIN
UPDATE MAIL_TBL SET nMail = @nMail_After, serverindex = @serverindex, dwSerialNumber = @dwSerialNumber, nHitPoint = @nHitPoint
WHERE serverindex = @iserverindex and nMail = @nMail_Before
RETURN
END
ELSE
IF @iGu = 'I1'
BEGIN
-- Ãßõ À̺¥Æ® ±â°£ÀÎÁö È®ÀÎ
IF(getdate() < @sdate or getdate() > @edate) BEGIN
RETURN
END
-- ÃßõÀÎ ÀÎÁö È®ÀÎ -- select top 10 * from ACCOUNT.ACCOUNT_DBF.dbo.tblEventRecommend
-- IF( NOT EXISTS(SELECT * FROM ACCOUNT.ACCOUNT_DBF.dbo.tblEventRecommend where byaccount = @iaccount ) ) BEGIN
-- RETURN
-- END
-- ¹ÞÀ»¼ö ÀÖ´Â ¾ÆÀÌÅÛÀÌ ÀÖ´ÂÁö È®ÀÎ
DECLARE @ItemID int
DECLARE @ItemNum int
DECLARE @bBinds int
SET @ItemID = 0
SET @ItemNum = 1
SET @bBinds = 2
IF( @nLevel = 20 ) BEGIN
SET @ItemID = 26112
END
ELSE IF( @nLevel = 40 ) BEGIN
SET @ItemID = 26211
END
ELSE IF( @nLevel = 60 ) BEGIN
SET @ItemID = 26103
END
ELSE IF( @nLevel = 80 ) BEGIN
SET @ItemID = 30135
END
ELSE IF( @nLevel = 100 ) BEGIN
SET @ItemID = 5800
SET @bBinds = 0
END
ELSE IF( @nLevel = 120 ) BEGIN
SET @ItemID = 4703
SET @bBinds = 0
END
IF( @ItemID = 0 ) BEGIN
RETURN
END
-- ¸ÞÀÏ ¾ÆÀ̵ð ÇÒ´ç Çϱâ
DECLARE @nMaxMailID int
SELECT @nMaxMailID = MAX(nMail)+1 from MAIL_TBL where serverindex = @iserverindex
SET @nMaxMailID = ISNULL( @nMaxMailID, 0 )
-- ¾ÆÀÌÅÛ ÁÖ±â
DECLARE @szTitle VARCHAR(128)
DECLARE @szText VARCHAR(1024)
SET @szTitle = '·¹º§ ¾÷À» ÃàÇÏ µå¸³´Ï´Ù!'
SET @szText = 'ij¸¯ÅÍ ·¹º§ ¾÷ ±â³ä »óǰÀ» º¸³»µå¸³´Ï´Ù ^¤±^* ÇÁ¸®ÇÁ¿Í ÇÔ²² Áñ°Å¿î ÇÏ·ç º¸³»½Ã±â ¹Ù¶ø´Ï´Ù. °¨»çÇÕ´Ï´Ù.'
EXEC dbo.MAIL_STR 'A1', @nMaxMailID, @iserverindex, @idPlayer, '0000000', 0, @tmCreate, 0, @szTitle, @szText,@ItemID, @ItemNum, 0, 0, 0, 0, @bBinds
RETURN
END
Wichtig ist dabei nur folgende Zeile:
Code:
-- twilight edit START
set dateformat ymd
-- twilight edit END
Damit wäre der Konflikt zwischen den Zeitformaten behoben..
What's the error exactly? I've seen some mail warnings, but if I recall correctly, they didn't have anything to do with the "realtime" stored procedure.
What's the error exactly? I've seen some mail warnings, but if I recall correctly, they didn't have anything to do with the "realtime" stored procedure.
What's the error exactly? I've seen some mail warnings, but if I recall correctly, they didn't have anything to do with the "realtime" stored procedure.
People with German time-settings will get problems with the dateformat (englisch: ymd / german: dmy (I'm not sure)), so SQL can't convert a varchar like 20121112 to a datetime value, when the format doesn't fit to the current settings.
People with German time-settings will get problems with the dateformat (englisch: ymd / german: dmy (I'm not sure)), so SQL can't convert a varchar like 20121112 to a datetime value, when the format doesn't fit to the current settings.
2012/11/23 20:38:15
query:RANKING.RANKING_DBF.dbo.RANKING_STR 'R1','01'
SQLSTATE:42000 error:[Microsoft][SQL Native Client][SQL Server]Named Pipes Provider: Could not open a connection to SQL Server [2].
Danke xTwilight ^^ Du kennst dich sicher sehr gut mit MSSQL aus oder :O ?
Wäre cool ,wenn du mir bei etwas helfen könntest ^^ Weil mein Ranking und Mein Ticketsystem funktioniert nicht richtig ,weil irgendwo eine falsche Abfrage ist ^^
Also wäre cool ,wenn du mal Zeit hättest und mri dabei helfen würdest Lg Armageddon
[mini-release]Motlist.txt Error 05/05/2012 - Metin2 PServer Guides & Strategies - 10 Replies Germany Release:
Hallo an alle.
So war ich ein Server-Fehler motlist.txt viele von euch Zombies, etc..
Diese Lösung wurde die Lösung mob_proto.
Eine einfache SQL-Befehl kann verbessert werden
Der Code:
UPDATE player.mob_proto set folder='wolf';
Mini launcher error Tz2moons 09/26/2008 - Dekaron Private Server - 2 Replies Guys i installed dekaron EU after intall patch and when try to connect with the minilauncher send me a error any 1 can help to fix it pls btw i change already compatibity and still error :mad:
[Read!] Mail Error 08/29/2005 - Main - 7 Replies Bei einigen (allen?) kommt beim Posten / PM senden ein "Mail Error".
Bitte nicht nochmal nach dem Fehler posten, euer Beitrag / Thread wurde gepostet!
Schönen Abend / Morgen noch ;)
Fehler:
Mail Error!