dat*_*god 3 sql-server sql-server-2008-r2 compression
我正在创建一系列将启用页面级压缩的新表。
这是否也会影响索引,还是在创建索引时我还必须指定压缩?
create table Message
(
pk_Message int identity NOT NULL constraint PK_Message primary key,
[Message] varchar(900) NOT NULL constraint UK_Message__Message unique,
DateCreated datetime NOT NULL default getdate()
) with (data_compression = page)
go
Run Code Online (Sandbox Code Playgroud)
正如您在我的示例中看到的那样,我计划对相当大的数据类型创建唯一约束,并希望利用压缩。
来自:http : //msdn.microsoft.com/en-us/library/cc280449%28v=sql.105%29.aspx
表的压缩设置不会自动应用于其非聚集索引。每个索引必须单独设置。
归档时间: |
|
查看次数: |
3614 次 |
最近记录: |