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

Error connecting to local MSSQL database #155

Open
Morotai opened this issue Sep 27, 2023 · 0 comments
Open

Error connecting to local MSSQL database #155

Morotai opened this issue Sep 27, 2023 · 0 comments

Comments

@Morotai
Copy link

Morotai commented Sep 27, 2023

All,

Checked with some nice folks in Discord on the issue below but have not found anyone that knows what this error means or how I can get passed it. I started a new project several times and the last one I passed --database mssql to mix phx.new to scaffold my project.

Hoping it's something simple I missed in my environment.

Environment

  • Elixir version (elixir -v): 1.15.5
  • TDS version (mix deps): 2.3
  • MSSQL Server version (SQL Server 2016 / 2019 / Azure SQL Edge): SQL Server 2019
  • Additional configuration parameter (ssl_opts, socket_options, ...):
  • Operating system: Windows 11

Expected behavior

iex -S mix should connect to the local SQL server and allow me to run queries

Actual behavior

When I run iex.bat -S mix, I get the following message:
[error] driver_select(0x0000021b85901290, 852, ERL_DRV_READ, 1) by tcp_inet driver #Port<0.53> stealing control of fd=852 from resource prim_tty:tty

[notice] Application my_app exited: shutdown

simonmcconnell added a commit to simonmcconnell/tds that referenced this issue Sep 28, 2023
Clarifies how to use it with Ecto.  The lack of Ecto instructions led to issue elixir-ecto#155.
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

1 participant