-
Notifications
You must be signed in to change notification settings - Fork 257
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
sqlalchemy.exc.OperationalError #319
Comments
What do you expect me to do about this? |
I mean, why like this? Am I doing anything wrong? |
Well, from the error message if looks like the login failed, so wrong username/password combination. See if you can connect with bare sqlalchemy using the same connection URI. |
No, the password and username combination is correct. But didn't check that with sqlalchemy. Will let you know tomorrow. Thanks. |
If your password contains certain special characters, they may need to be escaped. |
To Future Readers, If your password contains special characters, please use Percent-encoding for encoding. Alternatively, you can use the following Python code: import urllib.parse
# URL Encoding
original_string = "pa$ssw@ord"
encoded_string = urllib.parse.quote(original_string)
print(encoded_string)
# URL Decoding
decoded_string = urllib.parse.unquote(encoded_string)
print(decoded_string) This method ensures that your password is correctly interpreted in URLs. |
Closing as obsolete, and probably a non-issue. |
Things to check first
I have searched the existing issues and didn't find my bug already reported there
I have checked that my bug is still present in the latest release
Sqlacodegen version
sqlacodegen==3.0.0b2
SQLAlchemy version
SQLAlchemy==1.4.51
RDBMS vendor
MSSQL
What happened?
sqlacodegen mssql+pymssql://sql_username:sql_password@server/database
giving above error but with postgres it's working fine.Database schema for reproducing the bug
No response
The text was updated successfully, but these errors were encountered: