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.
| Author |
Topic |
|
satya3124
Starting Member
1 Post |
Posted - 2010-06-15 : 15:51:38
|
| Hi...I am trying to parse the dataI have to move one column fullname(ex: john f kennedy, manager) data to 3 columns ( first, middle, last). I don't need designation (manager) after comma.Please help me out Thanks |
|
|
vijayisonly
Master Smack Fu Yak Hacker
1836 Posts |
Posted - 2010-06-15 : 16:04:40
|
| You need to give more information than that. Will there always be only 3 parts in the name (No prefix, suffix?). What if there is no Middle Name? Or what if there is a Name like "Cote De Pablo"?EDIT: Have a look at this script from blindman. It covers all scenarios. I use it frequently.http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=56499 |
 |
|
|
|
|
|