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

Can't connect to SQL Server using JDBC #12

Open
jotav93 opened this issue Aug 9, 2023 · 0 comments
Open

Can't connect to SQL Server using JDBC #12

jotav93 opened this issue Aug 9, 2023 · 0 comments

Comments

@jotav93
Copy link

jotav93 commented Aug 9, 2023

Describe the bug
Can't connect to my sql server from databricks.

To Reproduce

  1. Install sqlalchemy and sqlalchemy-jdbcapi
  2. Build your connection string as per below (to a MS SQL Server):
    jdbcUrl = f"jdbcapi+jdbc:sqlserver://{jdbcHostname}:{jdbcPort};database={jdbcDatabase};user={username};password={password};loginTimeout=30;"
  3. Execute engine = create_engine(jdbcUrl)
  4. Error: Could not parse SQLAlchemy URL from string:...

Expected behavior
Engine should be created

Setup information

  • OS: Azure Databricks
  • Browser Chrome
  • Version Databricks Runtime 11.3 LTS

Additional context
Let me know if you need more details. Is there anything wrongwith my connection string? What environment variables do I need to specify? (I have already specified the JDBC_DRIVER_PATH)

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