Viewing 6 posts - 1 through 6 (of 6 total)
I know this is an ancient post, however I came across it when searching for a way to get process information into SQL Server. This method is fundamentally flawed as...
May 8, 2017 at 5:22 am
Right, it shouldn't happen in a production database but will have to be dealt with during ETL processes, especially if you want to be able to report on such errors.
September 11, 2015 at 7:10 am
select STUFF(
(
SELECT ',' + StatusDesc
FROM MyStatusList
FOR XML PATH('')
ORDER BY Status_Id
),
1,
1,
''
)
September 28, 2012 at 7:34 am
ok... i loved the for XML path.
The stuff it's kind of cute, but i didn't understand TYPE... and the ./text thing... I have to study more.
Where can I learn more...
July 19, 2012 at 11:02 am
Problem with recursive CTEs is that they are very slow in comparison to the XML method.
Please see here[/url] for a much better article on the subject.
July 19, 2012 at 8:16 am
stuff((select ',' + ID
from teste
for XML path(''),TYPE).value('(./text())[1]','NVARCHAR(MAX)'
),
1,
1,
'')
This copes with any string length.
July 19, 2012 at 7:17 am
Viewing 6 posts - 1 through 6 (of 6 total)