How to Use Long SQL Server Table Names in Microsoft Access
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.

- 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.
Ensure you have the necessary permissions in your SQL Server database to create new views, and obtain the exact connection string for your database.
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.
Connect to your SQL Server instance and open a New Query window directed at your database.
Execute a SQL statement to create the view. For example: CREATE VIEW ShortTableName AS SELECT * FROM YourExtremelyLongTableNameThatExceedsLimits;
Open your Microsoft Access database, navigate to the 'External Data' tab, and click 'ODBC Database'.
Select 'Link to the data source by creating a linked table', choose your SQL Server DSN, and log in.
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.

Use an Access Pass-Through Query (Read-Only)
If you only need to retrieve and view data without modifying it, writing a direct pass-through query is a fast and simple workaround.
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. Download the Installer: Navigate to the official WPS Office website and click the free download button.
- 2. Install the Software: Run the downloaded executable file and follow the brief on-screen instructions to install the suite.
- 3. Open and Analyze Your Data: Launch WPS Spreadsheets to instantly open your .xlsx files, import database queries, and manage your data with ease.

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.




