Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Need Help with UDF

Author  Topic 

robert_paris
Starting Member

1 Post

Posted - 2012-01-19 : 09:08:21
My problem is actually to take the name fields in the database (all in Uppercase) and correctly display them. For instance:
O'IRISHNAME --> as O'Irishname and
LONGHYPHENATED-NAME as Longhyphenated-Name and
LASTNAME/PARTTWO as Lastname/Parttwo and lastly
LNAME PARTTWO as Lname Parttwo.

Expecting to have to write a UDF in SQL Server Management Studio 2005.

ehorn
Master Smack Fu Yak Hacker

1632 Posts

Posted - 2012-01-19 : 09:11:59
Hello robert_paris,

Searching this site for "proper case" will return many ideas for accomplishing this task.

HTH.
Go to Top of Page

X002548
Not Just a Number

15586 Posts

Posted - 2012-01-19 : 10:21:00
Look up LOWER(), UPPER(), CHARINDEX() and SUBSTR in Books online (BOL)


Brett

8-)

Hint: Want your questions answered fast? Follow the direction in this link
http://weblogs.sqlteam.com/brettk/archive/2005/05/25/5276.aspx


Want to help yourself?

http://msdn.microsoft.com/en-us/library/ms130214.aspx

http://weblogs.sqlteam.com/brettk/

http://brettkaiser.blogspot.com/


Go to Top of Page
   

- Advertisement -