Efficiently convert rows to columns in sql server – Stack Overflow

I’m looking for an efficient way to convert rows to columns in SQL server, I heard that PIVOT is not very fast, and I need to deal with lot of records.