Check Composite Key Uniqueness in a SharePoint 2013 Access App
Question details
Determine how an imported join table prevents duplicate foreign-key combinations when its displayed primary key contains only one field.

- 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.
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.
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.
Open SQL Server Management Studio, select Connect > Database Engine, and sign in to the server hosting the app database with an authorized account.
In Object Explorer, expand Databases, select the app database, and expand Tables to locate the imported join table.
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.
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.

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.

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.




