PROBLEM!!!

01/22/2010 20:11 spider9999#1
nvm
01/22/2010 20:17 xfactorbowler#2
Code:
USE [Character]
GO

/****** Object:  UserDefinedFunction [dbo].[FN_BinDateToDateTime]    Script Date: 01/10/2010 19:35:14 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER OFF
GO




/******************************************************************************
   이  름 : dbo.FN_BinDateToDateTime
   설  명 : Binary Date를 DateTime 형식으로 반환한다.
   반환값 : 
   수정내역:
   Ver        Date        Author           Description
   ---------  ----------  ---------------  ------------------------------------
   1.0        2006-05-05  Han Ji Wook      1. 초기생성
   2.0        2010-01-10  ADM-Cyrax/Darth Nerd
 ******************************************************************************/
ALTER  FUNCTION [dbo].[FN_BinDateToDateTime] (
	@i_bin_time	binary(4)
) RETURNS datetime
AS
BEGIN
	DECLARE @v_datetime	datetime
	DECLARE @v_strAux varchar(20)
	DECLARE @v_strtime	varchar(20)
	SET @v_strAux = CAST(CAST(@i_bin_time as int) as varchar(20))
	IF len(@v_strAux) = 7	
		SELECT	@v_strtime	= '20100' + CAST(CAST(@i_bin_time as int) as varchar(20))
	ELSE
		IF len(@v_strAux) = 8 
			SELECT	@v_strtime	= '2010' + CAST(CAST(@i_bin_time as int) as varchar(20))
		ELSE
				SELECT	@v_strtime	= '201' + CAST(CAST(@i_bin_time as int) as varchar(20))

	
	SELECT	@v_strtime	= SUBSTRING(@v_strtime,1,4)
						+'-'+SUBSTRING(@v_strtime,5,2)
						+'-'+SUBSTRING(@v_strtime,7,2)
						+' '+SUBSTRING(@v_strtime,9,2)
						+':'+SUBSTRING(@v_strtime,11,2)	
	SELECT	@v_datetime = CAST(@v_strtime as datetime)
	RETURN @v_datetime
END
make sure you use the whole fix.
01/22/2010 20:24 spider9999#3
l
01/22/2010 20:37 xfactorbowler#4
no your not you took out the most important snippet of the code it self according to your code its not calling to go anywhere you need to keep

USE [Character]
GO

/****** Object: UserDefinedFunction [dbo].[FN_BinDateToDateTime] Script Date: 01/10/2010 19:35:14 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER OFF
GO
because its telling the snippet where to go.
01/23/2010 00:41 NicoBlacktir#5
STOP WITH WAR !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!

make it again in query or make a video with that FAILED !!

Sincerely,

Me
01/23/2010 01:07 xfactorbowler#6
wow just tellin the guy what he's doing wrong and you come in with a moronic statement like that.
01/23/2010 07:13 [GM]Force#7
Quote:
Originally Posted by xfactorbowler View Post
wow just tellin the guy what he's doing wrong and you come in with a moronic statement like that.
Yea,LoL
This guy is funny..
He came here and just said stop with the war..
Wtf?Whic war
lol...Better chek if you got PTSP :P
01/24/2010 02:17 spider9999#8
j
01/24/2010 04:03 Decima#9
paste us the entire thing so we can look at it, including the top
01/24/2010 12:05 spider9999#10
o