我一直在一個項目,我有一個計算列的表。當我開始同步,它說:不包括Sql Server計算列從同步
The column "TotalAmount" cannot be modified because it is either a computed column or is the result of a UNION operator
我想排除此列是同步。
我正在使用C#和Sql Server 2008 R2。
表定義:
CREATE TABLE [dbo].[tblFeeDetails](
[RecordId] [bigint] IDENTITY(1,1) NOT NULL,
[SessionId] [int] NOT NULL,
[CourseId] [int] NOT NULL,
[FormNumber] [nvarchar](50) NOT NULL,
[CourseFee] [money] NOT NULL,
[OtherCharges] [money] NOT NULL,
[LateFee] [money] NOT NULL,
[TotalAmount] AS (([CourseFee]+[OtherCharges])+[LateFee]) PERSISTED,
[Status] [bit] NOT NULL
)
你能給我們表或視圖的定義嗎? – bvdb
@bvdb請檢查我的編輯 –
有沒有人在stackoverflow誰可以回答這個問題? –