Data Import & Export

How to Fix Excel SQL Server Data Refresh Errors in SharePoint

Elise WilliamsElise Williams Oct 22, 2026 869 views

Question details

Users need to resolve an issue where an Excel workbook successfully refreshes SQL Server data in the desktop app but fails when accessed via Excel for the web or SharePoint.

How to Fix Excel SQL Server Data Refresh Errors in SharePoint
Product
Microsoft Excel for the web
Device & OS
not provided
Scenario
Attempting to refresh an external SQL Server data connection from within an Excel workbook hosted on SharePoint or Excel for the web.
Observed behavior
The data refresh fails in the web environment because the SQL data source does not support anonymous credentials, despite working flawlessly in the local desktop application.
Before you start

Verify that your SQL Server database is online and check whether colleagues are experiencing similar refresh issues with other connected workbooks to isolate the problem.

Solution 1Recommended

Refresh the Workbook in the Excel Desktop Application

Since the connection works locally, opening the file in the desktop app is the fastest way to refresh the data immediately.

Excel for the web has stricter authentication limitations compared to the desktop version. By forcing the workbook to open in the native Excel application, you bypass web-based credential blocks and utilize your local machine's connection to the SQL Server.

1
Open from SharePoint

Navigate to the document library in SharePoint where the file is stored, select the workbook, click the 'Open' dropdown menu, and choose 'Open in App'.

2
Refresh the Data

Once the file opens in the Excel desktop application, navigate to the 'Data' tab on the top ribbon and click the 'Refresh All' button to pull the latest SQL Server data.

3
Save Changes

After the data finishes updating, save the workbook. The refreshed data will automatically sync back to SharePoint for web users to view.

Refresh the Workbook in the Excel Desktop Application
Immediate Workaround: This method ensures your data remains up-to-date while you investigate permanent server-side authentication fixes.
Free Microsoft Office alternative

Try WPS Office for Seamless Local Data Management

If complex SharePoint authentication issues are slowing down your workflow, consider switching to WPS Office. It provides a lightweight, highly compatible alternative with a familiar interface, allowing you to manage spreadsheets and handle data locally without unpredictable server-side refresh limitations.

  1. 1. Download and Install: Get WPS Office from the official website and complete the quick, lightweight installation process.
  2. 2. Open Your Spreadsheet: Launch WPS Spreadsheets and open your .xlsx file directly from your local drive.
  3. 3. Manage Data Securely: Edit, format, and handle your data locally to ensure complete control over your connections and performance.
100% compatible with Microsoft Excel (.xlsx) formatsRobust local performance for handling large datasets without web-sync issuesFamiliar user interface with zero learning curveCompletely free to download and use for essential office tasks
microsoft office alternative - wps office

Frequently Asked Questions

Why does my SQL data refresh work in Excel desktop but fail in SharePoint?

The Excel desktop application utilizes your computer's local network and Windows credentials to communicate directly with the SQL Server. Excel for the web operates on a web server that does not support passing anonymous credentials or local network tokens, causing the refresh to fail.

Which authentication methods are supported by Excel for the web?

Excel for the web typically requires secure authentication setups, such as Windows Authentication configured via a Secure Store Service, or specific organizational OAuth settings. It explicitly blocks unauthenticated or anonymous connection strings for external data.

Can I bypass this SharePoint limitation without changing SQL settings?

Yes. The simplest bypass is to open the file in the desktop app to perform the refresh. Alternatively, you can build a Microsoft Power Automate flow to extract the SQL data and automatically push it into a static Excel table hosted on SharePoint.