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
 SQL Server 2005 Forums
 Transact-SQL (2005)
 Parse 1 Column to Multiple Columns

Author  Topic 

WilliamsIT
Starting Member

1 Post

Posted - 2008-08-22 : 16:48:50
Any ideas on how to parse one column into multiple columns where the on column has a sting value like: \ Application \ Microsoft Office \ Word \ Error
Thank you,
ATW

dexter.knudson
Constraint Violating Yak Guru

260 Posts

Posted - 2008-08-22 : 20:18:42
See the PIVOT statement
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2008-08-23 : 01:07:16
quote:
Originally posted by WilliamsIT

Any ideas on how to parse one column into multiple columns where the on column has a sting value like: \ Application \ Microsoft Office \ Word \ Error
Thank you,
ATW


Try using substring. For more details post your current sample data from table.
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2008-08-23 : 06:25:47
quote:
Originally posted by WilliamsIT

Any ideas on how to parse one column into multiple columns where the on column has a sting value like: \ Application \ Microsoft Office \ Word \ Error
Thank you,
ATW


Search for Split function in sqlteam

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
   

- Advertisement -