dbTalk Databases Forums  

Splitting Data

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


Discuss Splitting Data in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
B.L.
 
Posts: n/a

Default Splitting Data - 03-01-2005 , 03:37 PM






I have a table that contains the last name, first name, middle initial, and
suffix all together as one data element called "FULL NAME"; I need to have
this broken into separate data columns in my return query and have been
attempting to use CHARINDEX as a means to accomplish this task but to no
success. Please advise on how to best accomplish this task, thanks!

B.L.

Reply With Quote
  #2  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: Splitting Data - 03-01-2005 , 03:55 PM






Couple of ways to do this

The fastest way is to use the Source's language to split it before it
enters the pipeline.

The other way is of course to use an Active X transform and use SPLIT()

Allan

"B.L." <BL (AT) discussions (DOT) microsoft.com> wrote


Quote:
I have a table that contains the last name, first name, middle initial, and
suffix all together as one data element called "FULL NAME"; I need to have
this broken into separate data columns in my return query and have been
attempting to use CHARINDEX as a means to accomplish this task but to no
success. Please advise on how to best accomplish this task, thanks!

B.L.


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.