过滤连接中的非联合表不支持DML语句

时间:2013-11-23 09:00:34

标签: sql-server-2012

我在联邦数据库表上写了触发器, 在对它应用dml操作之后,它会给出一个例外; 过滤连接中的非联合表不支持DML语句。

1 个答案:

答案 0 :(得分:1)

> HAVE TO MENTIONED <FEDID> TO FEDERATED DATABASE TABLE WHILE CREATING
> TABLE INTO FEDERATION AND ASSIGNED <FEDID> = <FEDID> LIKE;

IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[AAA]') AND type in (N'U')) DROP TABLE AAA
CREATE TABLE [dbo].[AAA](
            [AAAID] [uniqueidentifier] NOT NULL,
            [FedID] [int] NOT NULL,
            [UpdateDate] [datetime] NOT NULL,
            [UpdateUser] [nvarchar](50) NOT NULL,
            CONSTRAINT [PK_History] PRIMARY KEY CLUSTERED(FedID, AAAID) 
 )
FEDERATED ON (FedID= FedID)
GO