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

Indexes with columns using DESC sort order #72

Closed
keith-hall opened this issue Feb 22, 2016 · 1 comment · Fixed by #80
Closed

Indexes with columns using DESC sort order #72

keith-hall opened this issue Feb 22, 2016 · 1 comment · Fixed by #80

Comments

@keith-hall
Copy link
Contributor

Given the following script:

CREATE NONCLUSTERED INDEX [IX_Test_1] ON [dbo].[Test]
(
    [TestID] DESC
)

SchemaZen currently does not honor the column sort order, and scripts it as:

CREATE  NONCLUSTERED INDEX [IX_Test_1] ON [dbo].[Test] ([TestID])

Column sys.index_columns.is_descending_key can be used to determine if a column in an index should be sorted in descending order.

@benjamin-hodgson
Copy link
Contributor

This issue is affecting me too.

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

Successfully merging a pull request may close this issue.

2 participants