SQL strings are screaming at me. How to implement Oracle InitCap in Transact-SQL

Ever had to deal with┬áseries of data which is all in upper case? Corresponding with clients and screaming their name at them isn’t a good look. What is required is function to convert or transform the upper case data into proper names. For example JOE BLOGS should be Joe Blogs.

Well if you are using Oracle you can use the InitCap string function. However in Microsoft SQL world there is no equivalent. Luckily it’s no big deal to implement your own InitCap function in Transact-SQL. The guys over at SQL Server Help┬áhave a great example here.

Share and Enjoy:
  • Print
  • Digg
  • StumbleUpon
  • del.icio.us
  • Facebook
  • Twitter
  • Google Bookmarks

Leave a Reply

Your email address will not be published. Required fields are marked *

*