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

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"

mrshl9898

Well-known Member
Joined
Feb 6, 2012
Messages
1,428
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,109,406
Messages
5,528,582
Members
409,827
Latest member
Tmcgrew05

This Week's Hot Topics

  • Change military grades into rank
    Afternoon all Need help with formula that will change military rank (i.e. 1, 2, 3 into Amn, A1C, SrA). Running IF formula that does not work...
  • VBA COUNTIF SOLUTION
    Hi The following are the errors spread across the several columns from E to Q ie. 13 columns across several sheets with more than 500 rows per...
  • INSERT ROW WITH SPECIFIS TEXT IN A COLUMN
    Hi All! How can identify that that the row to be inserted has to be inserted before 1st row with specific text in column F. If I record the...
  • Auto-Create a monthly Sign in sheet for preschool students
    The image below is what each page looks like. Above is space for the "Child Name" "Month" "Class" School days are obviously Monday-Friday but...
  • VBA vlookup multiple results
    Hi folks, Hopefully someone out there can help. I have a list to vlookup which works (ish). the lookup only picks up the first instance of the...
  • Extract values for earliest/latest times
    I am trying to put together a formula to get the earliest start time, the latest end time from column A for each person in Column B-F without the...
Top