-
Notifications
You must be signed in to change notification settings - Fork 78
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
Connect to SQL server over TCP #149
Comments
Hi @santoshturamari, This library uses TCP to connect to SQL server. If you have trouble to connection, please verify on what TCP port remote SQL server listens for connection. If that port is not 1433, you have to set it in this library in mix config like below import Mix.Config
config :your_app_name, :tds_conn,
hostname: "some-remote-hostname", # <--- change to IP address or hostname that SQL server is running on
port: 1433, # <---- Change to port SQL server listens
username: "...",
password: "...",
database: "database-name" |
Hi @mjaric Always I got this error.
See DBConnection.start_link/2 for more information But when I tried to connect via Python, pymssql or execute python script in Elixir using erlport, it got connected seamlessly. Thanks, |
Is your remote SQL server server in Azure? |
No, but after the trigger, when we checked the firewall logs, the requests always originated from 1434 port which is UDP port, even though I have mentioned 1433. Hence requests were always failing. But when I used pymssql from Python, the communication was proper. |
Hello,
I want to run Tds with TCP protocol. Because our application has to communicate with remote SQL server using TCP.
Is there any option to pass the protocol?
Please clarify.
@matreyes @josevalim
Thanks,
Santosh T
The text was updated successfully, but these errors were encountered: