Print Thread
Export Query Results as Excel
#53043 02/01/16 12:37 PM
Joined: Sep 2015
Posts: 9
Tallinn, Estonia
G
GriR Offline OP
Member
OP Offline
Member
G
Joined: Sep 2015
Posts: 9
Tallinn, Estonia
Hi,

When I run a long-lasting query and after that try to save results as Excel - it seems that query is run once again and I have to wait same long time ...
What I'm doing wrong?

Regards,

G.R.

Re: Export Query Results as Excel
GriR #53045 02/01/16 08:33 PM
Joined: Apr 2003
Posts: 517
Portland, OR, USA
M
Member
Offline
Member
M
Joined: Apr 2003
Posts: 517
Portland, OR, USA
Don't "export the query".

If you right click on the results grid somewhere and choose "Copy to Excel", it will just put what is in the results grid to Excel.

Make sure that you have all of the data in the results grid though. There is a SQL Window preference that can limit the number of rows returned. If that is set, you need to make sure to press the double green arrows that is underlined to "Fetch Last Page".

Re: Export Query Results as Excel
mike #53052 02/02/16 02:29 PM
Joined: Sep 2015
Posts: 9
Tallinn, Estonia
G
GriR Offline OP
Member
OP Offline
Member
G
Joined: Sep 2015
Posts: 9
Tallinn, Estonia
Thanks! That's the trick! But why this button exists?

Re: Export Query Results as Excel
GriR #53055 02/02/16 08:43 PM
Joined: Sep 2009
Posts: 197
Krakow, Poland
Member
Offline
Member
Joined: Sep 2009
Posts: 197
Krakow, Poland
As far, as I know, this is a feature you can use to export query result to MS Excel without loading the results first to the grid. In case of a query that returns first rows fast, but has a lot of data, you can execute the query to the grid, to take a look at the first rows, and then use the export to Excel button, to have the whole query exported, without having to load it whole to the grid.

I've never uses that feature myself, so I'm just guessing, but I've seen threads on this forum, mentioning those scenarios.


Moderated by  support 

Link Copied to Clipboard
Powered by UBB.threads™ PHP Forum Software 7.7.4
(Release build 20200307)
Responsive Width:

PHP: 7.1.33 Page Time: 0.125s Queries: 14 (0.082s) Memory: 2.5095 MB (Peak: 3.0394 MB) Data Comp: Off Server Time: 2024-05-22 01:07:33 UTC
Valid HTML 5 and Valid CSS