【发布时间】:2014-10-27 19:00:57
【问题描述】:
我正在尝试在内存中创建一个表,但它不断给我错误,例如:
Msg 10794, Level 16, State 85, Line 11 索引选项'pad_index'是 内存优化表上的索引不支持。
另一个人对主键集群说同样的话。
上面这两个东西(pad_index 和 PK Clustered)是必需的,除非有其他方法可以让它工作......
[DEMO-Training1]
GO
/****** Object: Table [dbo].[wtAssetChildren] ******/
SET ANSI_NULLS ON GO
SET QUOTED_IDENTIFIER ON GO
CREATE TABLE [dbo].[wtAssetChildren] (
[wtAssetChildrenID] [int] IDENTITY(1,1) NOT NULL,
[wtGUID] [uniqueidentifier] NOT NULL,
[CallingAssetID] [int] NOT NULL,
[AssetID] [int] NOT NULL,
[Processed] [bit] NOT NULL,
CONSTRAINT [PK_wtAssetChildren] PRIMARY KEY CLUSTERED ([wtAssetChildrenID] ASC)
WITH (
PAD_INDEX = OFF,
STATISTICS_NORECOMPUTE = OFF,
IGNORE_DUP_KEY = OFF,
ALLOW_ROW_LOCKS = ON,
ALLOW_PAGE_LOCKS = ON
) ON [PRIMARY]
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[wtAssetChildren]
ADD CONSTRAINT [DF_wtAssetChildren_Processed] DEFAULT ((0)) FOR [Processed] GO
【问题讨论】:
-
请发布您的代码或其简化版本。
标签: sql sql-server sql-server-2014