SQL Server columnstore index update/insert in stored procedure
问题 I was having fun testing out the columnstore index feature of sql server 2012. Because you can't update/insert tables with such indices I read on some options: keep a separate table and use a new partition for every bulk insert or disable the index, perform updates/inserts and then rebuild the index. For my test I chose the latter option and ended up with this stored procedure: -- Disable the columnstore index. ALTER INDEX [All_Columns_Columnstore_Index] ON [dbo].[Tick] DISABLE -- Insert data