And what about InitCap?

by Mattias Lind 2. June 2009 13:08

Well, I have that prepared for you aswell!

CREATE FUNCTION dbo.InitCap(@string varchar(max))
RETURNS varchar(max)
AS
BEGIN
RETURN (UPPER(Left(@string, 1)) + LOWER(RIGHT(@string,LEN(@string)-1)))
END

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: , ,

Comments are closed

Powered by BlogEngine.NET 1.4.5.0
Theme by Mads Kristensen