The query is as the following:
SELECT TABLE_NAME,COLUMN_NAME
FROM INFORMATION_SCHEMA.COLUMNS
where TABLE_NAME = ‘Customer’
order by COLUMN_NAME
The expect result should be as the following in result excel file
TABLE_NAME COLUMN_NAME
Customer CustomerAccountID
Customer CustomerAdhocEmail
Customer CustomerBusinessEmail
Customer CustomerBusinessNumber
The actual result is as the following:
TABLE_NAME COLUMN_NAME
Steps to re-create:
- Select the query
- Select export excel file
- Uncheck “overwrite” check box
- Open “Advanced Properties” window and then check "Use column name for a header row
- Run the automation scripts
Query result is not export to Excel when running automation script