我正在尝试更改表中的列.现有表格如下:
CREATE TABLE [dbo].[table]( [id1] [int] NOT NULL,[id2] [int] NOT NULL,[id3] [int] NOT NULL,[name] [nvarchar](255) NOT NULL,[id4] [int] NOT NULL,[xmlData] [xml](CONTENT [dbo].[xml_schema]) NULL,[booleanData1] [bit] NOT NULL,[notes] [varchar](4096) NULL,[id5] [int] NULL,[booleanData2] [bit] NULL,[id6] [int] NULL,CONSTRAINT [PK_table] PRIMARY KEY CLUSTERED ([id1] ASC,[id2] ASC,[id3] ASC) ) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
现在我试图在这个表上执行这个sql:
ALTER TABLE [table] ALTER COLUMN [xmlData] XML
这样我就可以删除xml架构并用新架构替换它.
但是我收到了这个错误:
Cannot create a row of size 8074 which is greater than the allowable maximum row size of 8060.
谁能告诉我这里的问题是什么?