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

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Split column by semi colon
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Starting Member

1 Posts

Posted - 09/18/2012 :  12:06:08  Show Profile  Reply with Quote

I have a SQL query that puts my data into the following format (sorry for the format, 5588 is ID, the semicolon delimited items are AUTH_ID, 2010 Boot camp is PUB_Name, 11 is PUBL_MO, 2010 is PUBL_YR, Impact... is title, and Darrell,John,Donna are Author_NAME):

5588 ;39830;39050;27472 2010 Boot Camp 11 2010 Impact of International Changes Darrell,John,Donna

I want to split out the AUTH_ID into individual rows, with one ID number in each row, but all of the other information can be the same. The number of items in the AUTH_ID column could be 1 number, or it could be several (4-5). Unfortunately I'm not familiar with how to do this, so any help would be appreciated.

Thanks in advance,

Very Important crosS Applying yaK Herder

52326 Posts

Posted - 09/18/2012 :  12:51:23  Show Profile  Reply with Quote
see scenario 4

the udf used can be found here

SQL Server MVP

Go to Top of Page

Starting Member

1 Posts

Posted - 10/10/2012 :  08:02:04  Show Profile  Reply with Quote
I was searching for something similar to this and found a solution that worked for me here:
Go to Top of Page
  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.02 seconds. Powered By: Snitz Forums 2000