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

MSSQL - Connection string parameters causing error #243

Open
ebner87 opened this issue Dec 23, 2022 · 1 comment
Open

MSSQL - Connection string parameters causing error #243

ebner87 opened this issue Dec 23, 2022 · 1 comment

Comments

@ebner87
Copy link

ebner87 commented Dec 23, 2022

Hi,

When using MSSQL and passing parameters through its connections string (for example TrustServerCertificate, driver, etc), the package responds saying that the parameter that comes after the "&" is not recognized as a command.

I have made an workaround on my local version to fix this, but maybe there's a better way to take care of it. Below are the changes:

Current cli.py file on lines from 38 to 40

    
    # Use reflection to fill in the metadata
    engine = create_engine(args.url)

Changes on those lines:

    conn_str = args.url
    if 'mssql' in conn_str:
        conn_str = conn_str + '&TrustServerCertificate=yes'

    # Use reflection to fill in the metadata
    engine = create_engine(conn_str)
@agronholm
Copy link
Owner

What did you try on the command line? Did you quote the parameters correctly?

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

2 participants