I have a string like this:
","","","41","20120627063343-0210600-41"
I wrote my query like this to split the above string
declare @s varchar(max)
set @s = '","","","41","20120627063343-0210600-41"'
select right(replace(@s,',',''),26) as output
And I am getting the following output
output
-------
20120627063343-0210600-41"
I want the output like this for the above string
YEAR TIME NO ID
---- ----- ---- ----
2012-06-27 06:33:43 0210600 41
Help me!
Thanks and regards, Anand