Build a way to name fields and return them as a series of columns in a query result and implement this for SQL server.