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 install script fails if the SA password contains special characters #2

Closed
dev-nt90 opened this issue Nov 13, 2023 · 1 comment
Closed

Comments

@dev-nt90
Copy link
Contributor

When the following command is run:
/opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P $SA_PASSWORD -d master -i master.sql

And the SA_PASSWORD parameter is set to a password with special characters, the following will be output:
Sqlcmd: 'master': Unknown Option

As a result, the AdventureWorks backup is not restored.

To fix, wrap the SA_PASSWORD param in quotes.

@chriseaton
Copy link
Owner

Fixed by @dev-nt90

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