Skip to content

Inserts on tables with computed columns #35

@mkp-incom-iam

Description

@mkp-incom-iam

Doing inserts on tables that contain computed columns fails:

  1. If the column is not hidden and left blank you get:
    image
  2. If the column is hidden you get:
    image

Attaching code for the table-schema used in this context:
CREATE TABLE ultorgtest.testtable( [Id] [int] IDENTITY(1,1) NOT NULL, [Code] AS (CONVERT([nvarchar](128),([SystemName]+'-')+CONVERT([nvarchar](7),[Id]))) PERSISTED NOT NULL, [SystemName] [nvarchar](96) NOT NULL, [Name] [nvarchar](128) NOT NULL, [CreatedBy] [nvarchar](100) NULL, [ModifiedBy] [nvarchar](100) NULL, [CreatedOn] [datetime] NOT NULL, [ModifiedOn] [datetime] NOT NULL CONSTRAINT [PK_testcode] PRIMARY KEY CLUSTERED ( [Code] ASC ) )

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions