Refresh Microsoft Excel File (on OneDrive) with On Premises SQL Server Data Connection

GerryRYAN

New Member
Joined
Aug 31, 2020
Messages
2
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
Hi,

I have an Microsoft Excel File stored on OneDrive.

The Excel File has a Data Connection to an SQL Server Database.

I stored the Excel File on OneDrive as some of the excel file users are not on the Network that the SQL Server is on.

I want to refresh the excel spreadsheet on opening the file to get the latest data from the SQL database.

However, unless the user is in the same network as the SQL Server Database, on refresh, an error message says that cannot get the data.

Is there a way to make this work? without VBA etc

Note: Remote users currently access the SQL Server Database Business Application via a VPN.

I also believe that if I use Power BI, and Gateway it would work, but the Company just wants Excel and OneDrive, and also the excel file is also a data input file.

Below is a conceptual picture of the requirement.
Refresh Question.jpg



Thank you for any assistance.

Gerry
 

Some videos you may like

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.

mrshl9898

Well-known Member
Joined
Feb 6, 2012
Messages
1,414
Not too sure this is the best place for this question. Maybe the Microsoft forums.

Having a similar issue at the moment trying to get past the Gateway and BI to pull from SQL. Company also refuses to use a Gateway.

Would this not work if they were on the VPN when refreshing? Otherwise you'll somehow need to pass the credentials through for the users to be recognised by the Server
 

GerryRYAN

New Member
Joined
Aug 31, 2020
Messages
2
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
Not too sure this is the best place for this question. Maybe the Microsoft forums.

Having a similar issue at the moment trying to get past the Gateway and BI to pull from SQL. Company also refuses to use a Gateway.

Would this not work if they were on the VPN when refreshing? Otherwise you'll somehow need to pass the credentials through for the users to be recognised by the Server


Hi Thanks for your reply, .. haha yes its on the MS forum too but no replies.

Did you solve your similar issue?

At the moment, they have no VPN ... should it work if they have?

For your second point regarding credential ... not sure what you mean, sorry

If you have a few minutes, maybe you can elaborate your response in more detail ... would greatly appreciate.

Cheers
Gerry
 

Watch MrExcel Video

Forum statistics

Threads
1,108,738
Messages
5,524,546
Members
409,583
Latest member
gkarthick

This Week's Hot Topics

Top