Viewing 3 posts - 1 through 3 (of 3 total)
The SQL Server 2012 CONCAT function accepts two or more string values. The user-defined CONCAT function accepts only two values. It's the "two or more" part that would...
June 6, 2012 at 7:19 am
The reason the script is not revolutionary is because other like Erland Sommarskog performed a lot of testing to figure out the best way to do it (http://www.sommarskog.se/arrays-in-sql-2005.html). In...
May 18, 2012 at 7:19 am
A comma-delimited list of values can also be generated using the for xml path approach.
select stuff((select ',' + cast(sNumber as varchar(10))
from @demo
for xml path('')),1,1,'');
May 17, 2012 at 7:01 am
Viewing 3 posts - 1 through 3 (of 3 total)