Link to home
Start Free TrialLog in
Avatar of mounty95
mounty95Flag for United States of America

asked on

SQL View to Excel

I have a view written for SQL Server 2008.  I order by a field called Fiscal Year.  When I run the vew in Management Studio, it runs with the fiscal years in ascending order.  When I add a connection to an Excel spreadsheet to pull this view in, the view returns the rows out of order.  I am not sure why this is.  I definitely am not sure how to resolve.
Avatar of x-men
x-men
Flag of Portugal image

try using the "order by" on your query definition, in Excel
Avatar of mounty95

ASKER

Where do you set the "order by" within the query definition?
ASKER CERTIFIED SOLUTION
Avatar of x-men
x-men
Flag of Portugal image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial