Others

How to Use Long SQL Server Table Names in Microsoft Access

Aamir Naveed AkramAamir Naveed Akram Nov 2, 2026 868 views

Question details

The user needs a method to link external SQL Server tables to Microsoft Access when the table names exceed the 64-character limit imposed by Access.

How to Work with Long SQL Server Table Names in Microsoft Access
Product
Microsoft Access
Device & OS
not provided
Scenario
Attempting to establish an ODBC connection and link SQL Server tables to an Access database where renaming the source tables is not permitted.
Observed behavior
Access fails to link or display tables with names longer than 64 characters, and SQL synonyms are ignored by the standard ODBC connection.
Before you start

Ensure you have the necessary permissions in your SQL Server database to create new views, and obtain the exact connection string for your database.

Solution 1Recommended

Create and Link SQL Server Views with Short Names

Bypass the character limit by creating a view in SQL Server with an abbreviated name that points to the long-named table, and then linking that view in Access.

Microsoft Access treats SQL Server views exactly like tables during the linking process. By creating a view with a name shorter than 64 characters, Access can safely recognize and establish a connection to it.

If you need to edit or append data from within Access, you must ensure that the view is designed to be updateable and explicitly define the primary key when prompting by the Linked Table Manager.

1
Open SQL Server Management Studio

Connect to your SQL Server instance and open a New Query window directed at your database.

2
Create a Short-Named View

Execute a SQL statement to create the view. For example: CREATE VIEW ShortTableName AS SELECT * FROM YourExtremelyLongTableNameThatExceedsLimits;

3
Link the View in Microsoft Access

Open your Microsoft Access database, navigate to the 'External Data' tab, and click 'ODBC Database'.

4
Establish the ODBC Connection

Select 'Link to the data source by creating a linked table', choose your SQL Server DSN, and log in.

5
Select the View and Define Primary Key

Find 'ShortTableName' in the list of tables/views. Check the box to select it. When prompted by Access, manually select the fields that make up the primary key to ensure the data is updateable.

Create and Link SQL Server Views with Short Names
Data Updating: As long as the primary key is correctly identified during the linking phase, you will be able to add, edit, and delete records in the view exactly as if it were a local Access table.
Free Microsoft Office alternative

Looking for a Lightweight Alternative to Microsoft Office?

While Microsoft Access is a specialized database management system, much of daily data processing, reporting, and analysis is better handled in a robust spreadsheet application. WPS Office offers a free, lightweight, and incredibly fast alternative to Microsoft Office. It integrates Word, Excel, and PowerPoint alternatives into one familiar, tabbed interface.

  1. 1. Download the Installer: Navigate to the official WPS Office website and click the free download button.
  2. 2. Install the Software: Run the downloaded executable file and follow the brief on-screen instructions to install the suite.
  3. 3. Open and Analyze Your Data: Launch WPS Spreadsheets to instantly open your .xlsx files, import database queries, and manage your data with ease.
Fully compatible with Microsoft Excel (.xlsx), Word (.docx), and PowerPoint (.pptx) file formats.Lightweight architecture ensures fast installation and smooth performance, even when processing large exported database reports.Built-in advanced data analysis tools and pivot tables make it easy to analyze SQL Server data exports.Free to use with a familiar, intuitive interface that requires zero learning curve for switching users.
microsoft office alternative - wps office

Frequently Asked Questions

What is the maximum table name length in Microsoft Access?

Microsoft Access imposes a strict 64-character limit on the names of tables, queries, forms, reports, and fields.

Why doesn't Access recognize my SQL Server synonyms?

Access connects to SQL Server via standard ODBC drivers. These drivers generally read the database schema for tables and views but do not expose SQL Server synonyms as standard linkable objects in the ODBC data source dialog.

Can I edit data in a linked SQL Server view in Access?

Yes. As long as the underlying SQL Server view is updateable (e.g., it doesn't use complex joins or aggregations that prevent updates) and you explicitly define the primary key when linking it in Access, you can add, edit, and delete records.

What is the main advantage of an Access pass-through query?

A pass-through query sends commands directly to the SQL Server for processing. This bypasses the Access database engine, eliminating character limit restrictions on table names and often returning large read-only datasets much faster.