logo
search
Data Import & Export

How to Connect Excel to a Local SQL Server Express Database

Steve KSteve K Sep 27, 2026 871 views

Question details

The user needs to know the correct server, instance, database, authentication, and connection-string settings to successfully establish a connection between Excel and a local SQL Server Express database.

How to Connect Excel to a Local SQL Server Express Database
Product
Microsoft Excel
Device & OS
not provided
Scenario
Importing database tables from a local SQL Server Express instance into a spreadsheet for data analysis.
Observed behavior
Requires step-by-step guidance on locating the correct connection parameters and setting up the database connection without encountering errors.
Before you start

Ensure that your local SQL Server Express instance is currently running and that the TCP/IP protocol is enabled in your SQL Server Configuration Manager.

Solution 1Recommended

Connect via the Built-in Get Data Feature

Using Excel's native 'Get Data' feature is the most straightforward method to connect to SQL Server Express without external configuration.

This method utilizes Microsoft's built-in Power Query technology to establish a direct connection to your database, allowing you to preview and transform data before loading it into your workbook.

1
Access the Data tab

Open your Excel workbook, navigate to the Data tab on the top ribbon, and click on 'Get Data'.

2
Select the database source

From the dropdown menu, select 'From Database', and then click on 'From SQL Server Database'.

3
Enter the server and instance name

In the Server box, enter your local instance name. For a default local SQL Server Express installation, this is usually '.\SQLEXPRESS' or 'localhost\SQLEXPRESS'.

4
Configure authentication

Enter the specific Database name if required. When prompted for credentials, select 'Windows' to use your current Windows account, or 'Database' to enter a specific SQL username and password.

5
Load the data

Click 'Connect'. Once authenticated, the Navigator window will appear. Select the tables or views you want to import and click 'Load' to bring them into your spreadsheet.

Connect via the Built-in Get Data Feature
Custom SQL Statements: You can click on 'Advanced options' during the server entry step to write a custom SQL query, which allows you to filter the data before it even reaches Excel.
Seamless Data Analysis

Import Database Data Seamlessly with WPS Spreadsheet

WPS Office provides robust and intuitive data handling capabilities. By using its built-in Data Import features, you can easily connect to your local databases via ODBC, enabling you to extract, format, and analyze your SQL Server data effortlessly within a highly compatible spreadsheet environment.

  1. 1. Install WPS Office: Download and install WPS Office for free from the official website.
  2. 2. Open Data Import: Open a new workbook in WPS Spreadsheet, navigate to the Data tab, and click on 'Import Data'.
  3. 3. Select Data Source: Choose the option to import from an ODBC DSN, and select the SQL Server Express data source you configured on your computer.
  4. 4. Analyze and Save: Authenticate the connection to load your tables, then use WPS Spreadsheet's advanced charts and PivotTables to analyze your data before saving it in standard Excel formats.
100% compatible with Microsoft Excel formats (.xlsx, .xls, .csv).Free and lightweight alternative for heavy data analysis.Supports direct data importing through system ODBC DSNs.Familiar user interface requiring no steep learning curve.
microsoft office alternative - wps office

Frequently Asked Questions

What is the default server name for a local SQL Server Express instance?

By default, the local instance name for SQL Server Express is '.\SQLEXPRESS' or 'localhost\SQLEXPRESS'. The dot represents your local machine.

Why am I getting a connection timeout error in Excel?

A timeout error usually occurs if the SQL Server service is stopped, or if the TCP/IP protocol is disabled. Open the SQL Server Configuration Manager, ensure the SQL Server (SQLEXPRESS) service is running, and verify that TCP/IP is enabled under Client Protocols.

Which authentication method should I choose when connecting?

Choose 'Windows Authentication' if your SQL Server is set up for Windows integrated security (which is common for local setups). If you created a specific SQL login (like 'sa') and password, choose 'Database' authentication instead.

Can I connect to a specific table rather than the whole database?

Yes. After you enter your server credentials and click Connect, a Navigator window will appear. It will display a list of all available tables and views in the database. You can check the specific tables you want to import before clicking Load.