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

ODBC load won't work #222

Closed
ilang6 opened this issue Jan 14, 2019 · 1 comment · Fixed by #281
Closed

ODBC load won't work #222

ilang6 opened this issue Jan 14, 2019 · 1 comment · Fixed by #281
Milestone

Comments

@ilang6
Copy link

ilang6 commented Jan 14, 2019

Hi ,

I trying to upload a dataframe to my SQL SERVER 2017.
I have the latest FreeTDS version (0.91) on Debian GNU/Linux version 9 , I'm running inside a docker container
and I'm using the following command:

ODBC.load!(db,"database.[dbo].[odbc_test]",df)

And I get the following error:

[ODBC] IM001: [unixODBC][Driver Manager]Driver does not support this function

But when I use python to upload data everything work.
I use the following command

from sqlalchemy import create_engine import pandas as pd engine = create_engine('mssql+pyodbc://user:password@servername?driver=FreeTDS') df.to_sql(name='odbc_test',schema ='[dbo]',index =False,con=engine)

please help

@quinnj quinnj added this to the 1.0 milestone May 23, 2020
@quinnj
Copy link
Member

quinnj commented May 23, 2020

Yeah, the previous ODBC.load function was using some very specific ODBC functions that, it turns out, a lot of drivers don't implement. I'm marking this issue as 1.0 to ensure we figure out a more general solution before tagging the 1.0 release.

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

Successfully merging a pull request may close this issue.

2 participants