Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Removing
Message
 
 
To
20/09/2002 09:23:49
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Title:
Miscellaneous
Thread ID:
00702476
Message ID:
00702701
Views:
10
Try
DECLARE @time varchar(32), @timenew varchar(32), @pos int
SET @time = CONVERT(varchar(32), getdate(),114)
SET @pos = 0
WHILE @pos < LEN(@time)
BEGIN
	SET @pos = @pos + 1
	IF SUBSTRING(@time, @pos, 1) <> ':'
 	  IF @pos = 1 
		SET @timenew = SUBSTRING(@time, @pos, 1)
          ELSE
		SET @timenew = @timenew + SUBSTRING(@time, @pos, 1)
END
SELECT @timenew
>Interesting, it returned a value of 65.
>
< snip >
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform