LoginSignup
0
0

More than 5 years have passed since last update.

SQL Server 2016 圧縮

Posted at
exec sp_estimate_data_compression_savings 'dbo', 'test', NULL, NULL, 'ROW'  --行圧縮
exec sp_estimate_data_compression_savings 'dbo', 'test', NULL, NULL, 'PAGE' --ページ圧縮 
--TABLEの場合
ALTER TABLE [dbo].[test] REBUILD PARTITION = ALL WITH (DATA_COMPRESSION = PAGE)
--INDEXの場合
ALTER INDEX [index_name] ON [dbo].[test] REBUILD PARTITION = ALL WITH (DATA_COMPRESSION = PAGE)
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0