I have created a SQL Server 2016 database with a temporal table Product
. I would like to update the table from an Access database through a linked table. When attempting to do this, Access reports
Reserved error (-7776): there is no error message for this error
The table is defined as:
CREATE TABLE [dbo].[Product]
(
[Product] [uniqueidentifier] NOT NULL,
CONSTRAINT PK_Product_Product PRIMARY KEY CLUSTERED (Product),
[Name] [nchar](50) NOT NULL,
CONSTRAINT [AK_Product_Name] UNIQUE([Product line], [Name]),
[Status] [uniqueidentifier] NOT NULL,
SysStartTime datetime2 GENERATED ALWAYS AS ROW START NOT NULL,
SysEndTime datetime2 GENERATED ALWAYS AS ROW END NOT NULL,
PERIOD FOR SYSTEM_TIME (SysStartTime, SysEndTime)
) ON [PRIMARY] WITH
(
SYSTEM_VERSIONING = ON (HISTORY_TABLE = dbo.ProductHistory)
)
GO
The query
UPDATE Product
SET Status = (SELECT [Product status]
FROM [Product status]
WHERE [Name] = 'Announced')
WHERE [Name] = 'A300';
succeeds without error and is shown in the Access table. Updates are correctly reflected in the History table.
I have tried hiding the valid time columns in case their back-end change causes the problem, but with no effect. Both Product
and Product status
tables contain minimal data.
Is there some specific way to get this to work, or is this scenario not supported?