Skip to content

Problem in df.to_sql() with SQL Server in pandas 0.23 #21288

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

Closed
klonuo opened this issue Jun 1, 2018 · 1 comment
Closed

Problem in df.to_sql() with SQL Server in pandas 0.23 #21288

klonuo opened this issue Jun 1, 2018 · 1 comment
Labels
Duplicate Report Duplicate issue or pull request

Comments

@klonuo
Copy link
Contributor

klonuo commented Jun 1, 2018

Hi,

I put data from dataframe to SQL Server:

engine = create_engine('mssql+pyodbc://localhost/...')
# ...
df.to_sql(name='data', con=engine, if_exists='append', index=False)

With version 0.21.1 and previous version this is successfully executed, but with version 0.23 I get error:

sqlalchemy.exc.ProgrammingError: (pyodbc.ProgrammingError)

('42000', '[42000] [Microsoft][ODBC SQL Server Driver][SQL Server]
    The incoming request has too many parameters. 
    The server supports a maximum of 2100 parameters. 
    Reduce the number of parameters and resend the request.
@chris-b1
Copy link
Contributor

chris-b1 commented Jun 1, 2018

Thanks for the report, duplicate of #21103

@chris-b1 chris-b1 closed this as completed Jun 1, 2018
@chris-b1 chris-b1 added the Duplicate Report Duplicate issue or pull request label Jun 1, 2018
@chris-b1 chris-b1 added this to the No action milestone Jun 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Duplicate Report Duplicate issue or pull request
Projects
None yet
Development

No branches or pull requests

2 participants