codeliftsleep
Board Regular
- Joined
- Apr 14, 2017
- Messages
- 103
So I have created multiple connections that query an SQL Server and have 2 running when I open the file in the background and then I call the other 4 in VBA since need to identify the user and pass it to the stored procedure it is calling.
The issue is that it is slow...really slow. From opening the file to finishing the queries and having all the pivot tables refresh it is taking about 5 minutes. The total query times only takes about 1.5 minutes or less so I am not sure where the time bottleneck is as far as having the file ready to use and why its taking so long for the other processes to complete. I am using Excel 2016.
So my question is, is there a way to have these queries run in parallel at the same time instead of sequentially i VBA to cut down on times?
Are there any tips that can lessen the amount of time this is taking to open and be ready for users?
The issue is that it is slow...really slow. From opening the file to finishing the queries and having all the pivot tables refresh it is taking about 5 minutes. The total query times only takes about 1.5 minutes or less so I am not sure where the time bottleneck is as far as having the file ready to use and why its taking so long for the other processes to complete. I am using Excel 2016.
So my question is, is there a way to have these queries run in parallel at the same time instead of sequentially i VBA to cut down on times?
Are there any tips that can lessen the amount of time this is taking to open and be ready for users?