dbTalk Databases Forums  

Altering Text Formats

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss Altering Text Formats in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Keith Roberts
 
Posts: n/a

Default Altering Text Formats - 12-06-2003 , 11:18 AM






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 ??



Reply With Quote
  #2  
Old   
Narayana Vyas Kondreddi
 
Posts: n/a

Default Re: Altering Text Formats - 12-06-2003 , 04:42 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




"Keith Roberts" <anonymous (AT) discussions (DOT) microsoft.com> wrote

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 ??





Reply With Quote
  #3  
Old   
Keith Roberts
 
Posts: n/a

Default Re: Altering Text Formats - 12-07-2003 , 05:16 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 !!!!!


Quote:
-----Original Message-----
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




"Keith Roberts" <anonymous (AT) discussions (DOT) microsoft.com
wrote in message
news:00a301c3bc1d$044fd4c0$a101280a (AT) phx (DOT) gbl...
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 ??




.


Reply With Quote
  #4  
Old   
Narayana Vyas Kondreddi
 
Posts: n/a

Default Re: Altering Text Formats - 12-07-2003 , 06:42 AM



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




"Keith Roberts" <anonymous (AT) discussions (DOT) microsoft.com> wrote

Narayana -- worked like a dream -- thank you very much --
I shall make sure that I do some shopping in Tescos in
the near future !!!!!


Quote:
-----Original Message-----
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




"Keith Roberts" <anonymous (AT) discussions (DOT) microsoft.com
wrote in message
news:00a301c3bc1d$044fd4c0$a101280a (AT) phx (DOT) gbl...
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 ??




.




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.