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

The variable name '@DistribLength' has already been declared #26

Open
fahlqvist opened this issue Oct 6, 2022 · 1 comment
Open

The variable name '@DistribLength' has already been declared #26

fahlqvist opened this issue Oct 6, 2022 · 1 comment

Comments

@fahlqvist
Copy link

CREATE PROCEDURE dbo.format_recommendation fails on variable re-declaration:

The variable name '@DistribLength' has already been declared. Variable names must be unique within a query batch or stored procedure.```

@fahlqvist
Copy link
Author

DECLARE @DistribLength int = @FirstDistribEnd - @FirstDistribBegin - 2; -- extra -2 to remove newlines at the end
DECLARE @DistribLength INT = @FirstDistribEnd - @FirstDistribBegin - 3;-- extra -2 to remove newlines at the end

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