Power Query Problems

How to Clear a Saved ODBC Username in Excel Power Query

Steven ParkerSteven Parker Nov 3, 2026 869 views

Question details

The user needs to remove an incorrect PostgreSQL username previously saved by the Data Connection Wizard so they can create a new 64-bit ODBC connection in Excel Power Query.

How to Clear a Saved ODBC Username in Excel Power Query
Product
Microsoft Excel 365
Device & OS
Windows
Scenario
Creating a new 64-bit ODBC data connection to a PostgreSQL database.
Observed behavior
Excel automatically uses the cached, incorrect credentials from a previous setup instead of prompting the user to enter a new username.
Before you start

Ensure you have your correct database credentials (username and password) ready before clearing the old permissions, as Excel will prompt you to enter them the next time you connect.

Solution 1Recommended

Clear Global Permissions in Excel Data Source Settings

This is the primary and recommended method to remove saved ODBC connection credentials directly within the Excel application.

Excel caches your data source credentials globally to save time when making repeated connections. Clearing these permissions forces Excel to forget the old username and prompt you for new credentials.

1
Open Data Source Settings

Launch Excel and open a workbook. Go to the Data tab on the ribbon, click on Get Data, and select Data Source Settings from the drop-down menu.

2
Switch to Global Permissions

In the Data Source Settings dialog box, click on the Global Permissions radio button at the top to view all credentials saved on your machine.

3
Clear Permissions

Scroll through the list and select the PostgreSQL data source. Click the Clear Permissions button at the bottom (or select Clear All Permissions if you wish to reset everything), then confirm the prompt.

4
Restart and Reconnect

Close the Data Source Settings window, restart Excel, and create your 64-bit ODBC connection again. You should now be prompted to enter your new credentials.

Clear Global Permissions in Excel Data Source Settings
Success Check: If you are immediately prompted for a username and password upon reconnecting, the old credentials have been successfully cleared.
Free Microsoft Office alternative

Try WPS Office for Seamless and Lightweight Data Management

If you frequently encounter caching issues, complex troubleshooting steps, or heavy resource usage with Microsoft 365, consider switching to WPS Office. It provides a lightweight, highly compatible alternative for your spreadsheet and data analysis needs, all within an intuitive, familiar interface.

  1. 1. Download WPS Office: Visit the official WPS website and click the free download button for your operating system.
  2. 2. Install the Application: Run the lightweight installer and follow the on-screen prompts to set up the software in seconds.
  3. 3. Open Your Spreadsheets: Launch WPS Spreadsheet and instantly open your existing .xlsx files without worrying about format distortion.
Completely free to download and use for essential tasksFully compatible with Microsoft Excel formats (.xlsx, .xls, .csv)Lightweight application with incredibly fast loading timesFamiliar user interface requiring zero learning curve for Office users
microsoft office alternative - wps office

Frequently Asked Questions

Where does Excel save my ODBC data connection credentials?

Excel securely saves these credentials globally on your machine within the Data Source Settings menu, specifically under the Global Permissions tab. This prevents you from having to log in every time you refresh a data query.

Will clearing my data source permissions delete my existing queries?

No, clearing permissions only removes the saved login credentials (username and password). Your query structures and data models will remain fully intact, but Excel will ask you to re-enter your login information the next time you refresh them.

Why does my ODBC connection keep using the old password even after I typed a new one?

This occurs because the Data Connection Wizard caches your initial credentials. Unless you manually clear the old profile from the Global Permissions menu, Excel defaults to the cached information without giving you the option to override it during the connection setup.