I’ve this GIGANTIC view with several hundred columns and I need to select 114th column something like:
SELECT "144" FROM MyView;
PS: Obviously, I don’t know the name of the column. I just copied the results row into an Excel file, searched for a particular value that is in EJ column so I want to select all rows showing only nth column in my view to do my further debugging.
Cheers!
If you are using MS SQL Server you can
and then scroll to the 144th column in the Column_name result set to see what the name of that column is.
Additionally you can choose “Copy with Headers” in the result pane in SQL Server Management Studio and paste the result set into Excel with the headers (column names) intact.