Replace output SELECT * with output columns
I'd like to replace the SELECT * with the actual column names in a query for the output columns. I think I can use QueryStatistics.OutputColumns and loop over the OutputColumn.Expression to create a comma separated list, but is there a better way to replace the SELECT * that just with string manipulation? I'm using the ASP.NET version C#
Hello, Marc.
This task has already been completed in the QueryTransformer object. The sample is below.
QueryTransformer _queryTransformer = new QueryTransformer {QueryBuilder = _queryBuilder,
AlwaysExpandColumnsInQuery = true
};
_queryBuilder.SQL = _queryTransformer.SQL;
Let me know if you have any further questions.