Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CREATE CLUSTERED COLUMNSTORE INDEX - Not working #117

Open
mariomineiro opened this issue Feb 4, 2017 · 6 comments
Open

CREATE CLUSTERED COLUMNSTORE INDEX - Not working #117

mariomineiro opened this issue Feb 4, 2017 · 6 comments
Assignees
Labels

Comments

@mariomineiro
Copy link

Hi,
When extracting and creating CCI index the structure is different and it doesn't create the table or index.
Example:
Source:
CREATE CLUSTERED COLUMNSTORE INDEX [CCI_SCHEMAZEN_ROX] ON [dbo].[SchemaZen]
Trying to create a normal index:
CREATE NONCLUSTERED INDEX [CCI_SCHEMAZEN_ROX] ON [dbo].[SchemaZen] () INCLUDE (columns....)
Error giving: Incorrect syntax near ')'.

Thank you in Advance,
Mário Mineiro

@sethreno sethreno added the bug label Feb 5, 2017
sethreno added a commit that referenced this issue Feb 5, 2017
@sethreno
Copy link
Owner

sethreno commented Feb 5, 2017

Thanks for reporting. I think this is fixed, but I'm not able to test as Column Store indexes are only supported in Enterprise Edition. Please test using the latest version and let me know if this is fixed. Thanks.

@sethreno sethreno closed this as completed Feb 5, 2017
@mariomineiro
Copy link
Author

mariomineiro commented Feb 7, 2017

Hi @sethreno ,
Thank you for the fast fix, but still not working, I tested only the .exe version.
The structured output didn't change from the previous version to this version.

The fix must:

  • "CREATE NONCLUSTERED INDEX" should be "CREATE CLUSTERED COLUMNSTORE INDEX"
  • remove the ()
  • remove the include/columns (CCI don't have include)

I'm available and please let me know if you need help on this.

Thank you in advance, such a great script:+1: excellent new features loved it

@sethreno sethreno reopened this Feb 8, 2017
sethreno added a commit that referenced this issue Feb 8, 2017
@sethreno
Copy link
Owner

sethreno commented Feb 8, 2017

This should be fixed in the latest version https:/sethreno/schemazen/releases/tag/1.3.51

Again, I'm not able to test so please verify and let me know if it works. Thanks!

@sethreno sethreno closed this as completed Feb 8, 2017
@mariomineiro
Copy link
Author

hi @sethreno still not working

@sethreno sethreno reopened this Feb 22, 2017
@sethreno
Copy link
Owner

I'm using msdn as a reference and I don't see anything wrong. Can you give more detail on what's not working? If you could post the script produced by the latest schemazen exe compared to a working script that would be great.

@sethreno sethreno self-assigned this Feb 22, 2017
@needbrew
Copy link

The issue is in the syntax. The program is creating the following :
CREATE CLUSTERED COLUMNSTORE INDEX [IndexName] ON [schema].[table] () INCLUDE (Columns)

but it needs to be

CREATE CLUSTERED COLUMNSTORE INDEX [IndexName] ON [schema].[TableName]

The clustered columnstore index includes all columns as this is how it is designed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants