You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When there are special characters in password in connection string, It fails with login failed. We do use many special characters in password, not sure which exact character is causing failures
To Reproduce
Try using password like @-(^-d:ec1/$P;~L=,#''e:L;8Nd*{)o2Xcj=~R);U-[5c/7z in connection string
Expected behavior
Login should pass because password is correct
Further technical details
SQL Server version: SQL Server 2017
Operating system: RHEL
The text was updated successfully, but these errors were encountered:
Yeah i have noticed the same problem. It seems to be caused by the function: splitConnectionStringURL which uses the url.Parse() from net/url to parse the dsn. url.Parse() expects the browser to correctly escape characters.
Workaround:
The workaround (that is working for me), is to url-encode the password like: 1234#!456 is encoded to: 123%23%21456
Now the DB connection is created with the correct password: 1234#!456
In this way, not including the password in the connection string I did not run into any problem and by specifying it directly there is no need of any kind of escape or other.
In this way the connection works with both simple password without special characters or any password that is accepted by SQLServer
Describe the bug
When there are special characters in password in connection string, It fails with login failed. We do use many special characters in password, not sure which exact character is causing failures
To Reproduce
Try using password like
@-(^-d:ec1/$P;~L=,#''e:L;8Nd*{)o2Xcj=~R);U-[5c/7z
in connection stringExpected behavior
Login should pass because password is correct
Further technical details
SQL Server version: SQL Server 2017
Operating system: RHEL
The text was updated successfully, but these errors were encountered: