Others

Check Composite Key Uniqueness in a SharePoint 2013 Access App

Chanuka GeekiyanageChanuka Geekiyanage Nov 25, 2026 869 views

Question details

Determine how an imported join table prevents duplicate foreign-key combinations when its displayed primary key contains only one field.

Check Composite Key Uniqueness in a SharePoint 2013 Access App
Product
SharePoint 2013 Access web app
Device & OS
not provided
Scenario
A join table with an original two-field composite key has been imported into an Access web app.
Observed behavior
The table shows a single-field primary key, but duplicate combinations of the two original foreign-key fields are still prevented.
Before you start

Identify the join table and its two foreign-key columns. You will need an authorized SQL Server connection to the app database and permission to inspect its indexes in SQL Server Management Studio.

Solution 1Recommended

Inspect the join table's unique index in SQL Server Management Studio

Use this check to determine whether a unique index retained the original composite-key uniqueness rule.

A single-field primary key and a separate unique index on two fields can coexist. The unique index may prevent duplicate pairs even though the fields are no longer shown as the primary key.

1
Connect to the database

Open SQL Server Management Studio, select Connect > Database Engine, and sign in to the server hosting the app database with an authorized account.

2
Find the join table

In Object Explorer, expand Databases, select the app database, and expand Tables to locate the imported join table.

3
Inspect its indexes

Expand the table's Indexes folder. Right-click each candidate index and select Properties; on the General page, check whether it is unique and whether its key columns are the two foreign-key fields.

4
Check for a filter

In the index properties, check the Filter page for a filter expression. An unfiltered unique index whose key columns are exactly the two foreign-key fields enforces uniqueness of the pair across the table.

Inspect the join table's unique index in SQL Server Management Studio
Uniqueness is separate from relationships: A unique index prevents duplicate key combinations but is not itself a primary key or a foreign-key relationship. If no matching unique index exists, investigate other constraints or application validation.
Free Microsoft Office alternative

Work with Office files in WPS Office

WPS Office is a free, lightweight alternative with a familiar interface for working with Office documents. Its format compatibility makes it easy to move common files between Microsoft Office and WPS. It does not administer SharePoint Access apps or their SQL indexes.

Review exported join-table data in WPS SpreadsheetsOpen and edit Microsoft Excel XLSX filesWork with Microsoft Word DOCX and PowerPoint PPTX filesUse familiar editing tools in a lightweight office suite
microsoft office alternative - wps office

Frequently Asked Questions

Why does the table show one primary-key field but reject duplicate pairs?

A separate unique index may enforce uniqueness across the two foreign-key fields. Check the join table's Indexes folder in SQL Server Management Studio to confirm.

Does a unique index make the two fields the primary key?

No. A unique index can enforce uniqueness independently of the primary key. Check the index properties and the table's primary-key definition separately.

What if the unique index has a filter?

A filtered unique index enforces uniqueness only for rows that meet its filter condition. Open the index's Properties in SQL Server Management Studio and check the Filter page.

Can WPS Office change the Access app's SQL indexes?

No. Use SQL Server Management Studio with an authorized connection to inspect the app database. WPS Spreadsheets can help review data exported to an Excel file but does not manage the app's indexes.