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

Cannot connect to SQL server using a # character in the password #75

Open
dbkblk opened this issue Nov 10, 2022 · 1 comment
Open

Cannot connect to SQL server using a # character in the password #75

dbkblk opened this issue Nov 10, 2022 · 1 comment

Comments

@dbkblk
Copy link

dbkblk commented Nov 10, 2022

Hi,

I cannot find a way to connect using a password with a # in the password.

The sqlstring is something like:
sqlserver://user:pass#word@theadress:23456?database=GENERIC"

This string would fail with an error of this type:
Failed to initialize database, got error parse sqlserver://user:pass: invalid port :pass after host.

The parsing seems to stop after the # char.

How can I workaround this?

@jhajjaarap
Copy link

jhajjaarap commented Nov 27, 2023

sqlserver://user:pass%23word@theadress:23456?database=GENERIC
You should encode url, after that will work well.

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