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
 CSV Format to Multiple Rows (CSV)

Author  Topic 

visa123
Yak Posting Veteran

54 Posts

Posted - 2011-01-25 : 08:15:32
Hi

My table values like below :

City Field (one row)

'Addyston','Alexandria','Alpha','Amelia','Anderson','Arlington Heights','Augusta','Aurora','Avondale','Batavia',
'Batesville','Bath','Beavercreek','Bellbrook','Bellevue','Bennington','Bethel','Blanchester','Blanchet','Blue Ash',
'Boston','Bromley','Brooksville','Brookville','Brown County','Brownsville','Buford','Burlington','Butler'


but i need mulitple row ( each row - 5 values) : like below
'Addyston','Alexandria','Alpha','Amelia','Anderson'
'Arlington Heights','Augusta','Aurora','Avondale','Batavia'
'Batesville','Bath','Beavercreek','Bellbrook','Bellevue'

can anyone help for this scenario?

Thanks

Visa.G
   

- Advertisement -