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

Incorrect syntax for adding index when comparing databases #185

Open
amycqx opened this issue Jun 22, 2020 · 0 comments
Open

Incorrect syntax for adding index when comparing databases #185

amycqx opened this issue Jun 22, 2020 · 0 comments

Comments

@amycqx
Copy link

amycqx commented Jun 22, 2020

Hey all,
Thanks for creating this handy tool to script and compare databases. I just started using it and ran into a problem while comparing databases.

The v1.4 current version generated scripts in form of:

"ALTER TABLE [table-name] ADD CREATE NONCLUSTERED INDEX [index-name] ON [table-name] (....)"

which is giving syntax error with SQL Server 2014 that I'm using. I believe it should be:

CREATE NONCLUSTERED INDEX [index-name] ON [table-name] (....)"

It might be a little similar to #117 might be able to use a similar fix.
Thanks!

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

No branches or pull requests

1 participant