Nonclustered columnstore index on indexed view not generated correctly in SQLPrompt

Tomo1Tomo1 Posts: 3 New member
edited March 21, 2024 12:29PM in SQL Prompt
Hey!
I created a table with clustered rowstore and nonclustered columnstore indexes. After that, I created an indexed view on top of that table.

Then I created a nonclustered columnstore index on that indexed view. The issue is that SQL Prompt is not generating nonclustered columnstore index on top of indexed view correctly. Instead of it being generated like this:

CREATE NONCLUSTERED COLUMNSTORE INDEX [CSIDX_mv_indexed_view] ON [schema].[mv_indexed_view] (ColumnList) ON [partSchema] ([partColumn])
GO

It is being generated like this:

CREATE NONCLUSTERED INDEX [CSIDX_mv_indexed_view] ON [schema].[mv_indexed_view]) INCLUDE (ColumnList) ON [partSchema] ([partColumn])

Additional note is that SQL Compare is generating the code correctly.

EDIT: Versions
SQL Prompt: 10.14.10.7538
SQL Compare: 15.3.0.25068
SSMS: 19.3

Answers

Sign In or Register to comment.