Hi Dimpu,
It has to do with with how Top returns the resultset of N versus how Select * from <table>. Please see TOP
(Transact-SQL)
TOP is built-in and you likely would see similiar results with the select * statement if you increased your deployment service tier.
I would start with the DMVs, such as the
monitor query execution view:
-- Monitor active queries
SELECT *
FROM sys.dm_pdw_exec_requests
WHERE status not in ('Completed','Failed','Cancelled')
AND session_id <> session_id()
ORDER BY submit_time DESC;
-- Find top 10 queries longest running queries
SELECT TOP 10 *
FROM sys.dm_pdw_exec_requests
ORDER BY total_elapsed_time DESC;
Another approach is to add a label to your select statement and then query for that label to see progress:
-- Query with Label
SELECT *
FROM sys.tables
OPTION (LABEL = 'My Query')
;
-- Find a query with the Label 'My Query'
-- Use brackets when querying the label column, as it it a key word
SELECT *
FROM sys.dm_pdw_exec_requests
WHERE [label] = 'My Query';
I hope this helps you but if you are seeking something more specific, please let us know.
Regards,
Mike