I have a table like this...
CustomerID DBColumnName Data -------------------------------------- 1 FirstName Joe 1 MiddleName
The OP didn't actually need to pivot without agregation but for those of you coming here to know how see:
sql parameterised cte query
The answer to that question involves a situation where pivot without aggregation is needed so an example of doing it is part of the solution.