-
Notifications
You must be signed in to change notification settings - Fork 164
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
Issue Connecting to Azure SQLServer Public Endpoints #402
Comments
Well,
is, as documented, perfect if you are connecting to Microsoft SQL Server 2000. |
Thanks for the response @fziglio. I tried the command with
and got the same result. Do you know why |
I would do a step back. As the command
is working I would try to transform this using
and use the command
That should work too (if not I would assume
(looking at your |
Again, thanks for your help. I have tried your suggestion with the following results freetds.conf file has this section:
The configuration requires a TDS version. When auto is set, the connection will time out. Command: Result:
Command:
Result:
One other thing I've noticed after looking at the debug logs and the code. It appears there is a different pathway when the -S flag is used vs -H. In tsql at line 598 (in version 1.00.91) this code is used to set the host:
Servername is correctly resolved to the host / port values from the file so that part is working but I am unable to determine what else might be changing based on the different code pathways. |
@fziglio Do you have any updates on this issue? |
I would try to update FreeTDS. Did you try https://www.freetds.org/userguide/logging.html ? I don't understand why you need to append the hostname to the username. |
Hi Everyone
This tsql call allows successful connection to an Azure SQLServer public endpoint:
tsql -H azure-host.public.some-guid.database.windows.net -U username -p 3342 -P password
However, if a connection is configured using freetds.conf
and this command is run
tsql -S azuredb -U username@azure-host -P password
The following error is reported
The questions are:
For reference:
tsql -C
Thanks for the great library.
The text was updated successfully, but these errors were encountered: