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 with pd_to_mssql #18

Open
PurenBITeam opened this issue Jul 17, 2019 · 2 comments
Open

Error with pd_to_mssql #18

PurenBITeam opened this issue Jul 17, 2019 · 2 comments

Comments

@PurenBITeam
Copy link

Hello everybody,

great package, but I get a strange error message when I try the mentioned above function with a sqlalchemy engine connected to ODBC.

See code below:
engine = create_engine(constring2)
engine.url
mssql+pymssql://XXXXXX:***@azurexxxx

import d6tstack.utils as du
du.pd_to_mssql(I_df, engine, "t_abda_pacapo01_stage", if_exists="replace")

This results in the error message below:
argument of type 'Engine' is not iterable

Any ideas how I can solve this?

thanks and br

christoph

@PurenBITeam
Copy link
Author

Add:
when I try pd_to_mssql with the constring directly and not with the engine object...I get the following error:
(pymssql.InterfaceError) Connection to the database failed for an unknown reason.
(Background on this error at: http://sqlalche.me/e/rvf5)

Already checked out the url, but cannot really figure out the problem. The connection works when i create an sqlengine.

thanks

@mengmer
Copy link

mengmer commented Oct 13, 2019

I got this problem too

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