all groups > sql server dts > december 2003 >
You're in the

sql server dts

group:

Altering Text Formats


Altering Text Formats Keith Roberts
12/6/2003 9:18:50 AM
sql server dts:
Apologies -- Newbie Question -- I have a column full of
Surnames that have been entered in Upper case.
I need to change them so that the first letter is
capitalised and the rest of the string is in lower case.

Any Ideas ??

Re: Altering Text Formats Narayana Vyas Kondreddi
12/6/2003 10:42:32 PM
You will have to clean up the existing data using an UPDATE statement, and a
User Defined Function like the following will come in handy:
http://vyaskn.tripod.com/code.htm#propercase
--
HTH,
Vyas, MVP (SQL Server)
http://vyaskn.tripod.com/
What hardware is your SQL Server running on?
http://vyaskn.tripod.com/poll.htm




[quoted text, click to view]
Apologies -- Newbie Question -- I have a column full of
Surnames that have been entered in Upper case.
I need to change them so that the first letter is
capitalised and the rest of the string is in lower case.

Any Ideas ??



Re: Altering Text Formats Keith Roberts
12/7/2003 3:16:01 AM
Narayana -- worked like a dream -- thank you very much --
I shall make sure that I do some shopping in Tescos in
the near future !!!!!


[quoted text, click to view]
Re: Altering Text Formats Narayana Vyas Kondreddi
12/7/2003 12:42:18 PM
Thanks, hope you enjoy your shopping experience :-)
--
Vyas, MVP (SQL Server)
http://vyaskn.tripod.com/
What hardware is your SQL Server running on?
http://vyaskn.tripod.com/poll.htm




[quoted text, click to view]
Narayana -- worked like a dream -- thank you very much --
I shall make sure that I do some shopping in Tescos in
the near future !!!!!


[quoted text, click to view]

AddThis Social Bookmark Button