Returning a Comma Delimited string

One of the small quirks of SQL is that it can add each row to a variable.In the most common case, this is used to generate a comma delimited list.The script shows how to do this wiht a scalar function, so that multiple rows are returned.The script shows calculating the column sum the hard way […]

2007-03-26 (first published: )

559 reads

Blogs

Using Write-Debug

By

I wrote a post about PoSh output recently, noting that in general we ought...

T-SQL Tuesday Retrospective #002: A Puzzling Situation

By

For the second T-SQL Tuesday ever — again, hosted by Adam Machanic — we...

Daily Coping 28 Oct 2020

By

I started to add a daily coping tip to the SQLServerCentral newsletter and to...

Read the latest Blogs

Forums

Index question

By Admingod

We have some indexes we have changed over the last few years to address...

Getting the top unique value by group

By David.Toews 95002

Alright, so I've been banging my head against the wall for a bit on...

table variable

By mtz676

deleted code resolved issue  

Visit the forum

Ask SSC

SQL Server Q&A from the SQLServerCentral community

Get answers