Cannot change column name in Excel's MS Query tool

G

Guest

I am using this 'tool' to review my sql query, in my select statement I am
using this

CR.ID, CR.CAT, CR.SEV, substr(cr.pr,1,5), CR.AP, USERS.FULLNAME

when get my my result in the MS SQL tool the result shows
"substr(cr.pr,1,5)" as a column header, when I move the query to excel the
column header is "4" which makes sense as it representing the 4th query.

My problem is I want to rename the column header in my result something that
I cannot seem to do even using the MS SQL query tool which says I should use
this
substr(cr.pr,1,5) AS 'PR Number',"

Can someone help me with a workaround, I can't seem to use that syntax at
all to change the column header in excel when my results are brought back.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top