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

SqlServer - reseed error if database is case sensitivity #117

Open
adobrzyc opened this issue Feb 28, 2023 · 1 comment
Open

SqlServer - reseed error if database is case sensitivity #117

adobrzyc opened this issue Feb 28, 2023 · 1 comment

Comments

@adobrzyc
Copy link

If database is case sensitivity executing with WithReseed = true will cause System.AggregateException -> Must declare the scalar variable "@sql".

It's because there is no @sql variable in the case sensitivity world ;)
if (@sql is not null) EXECUTE (@SQL)

@jbogard
Copy link
Owner

jbogard commented Feb 28, 2023

Siiiiigh collation strikes again!

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

2 participants