I am trying to turn a table 90 degrees: make columns rows. No PIVOT is allowed since PIVOT requires aggregate functions.
Example: I have a table with the columns
If you try this solution and get a syntax error try setting the compatability mode of your database via
ALTER DATABASE myDatabase SET COMPATIBILITY_LEVEL = 90;
This will set the compatability to SQLServer 2005 and the above queries will execute w/o a syntax error.