Код: Выделить всё
df.to_sql(name='streamlit_test', con=engine, schema='dbo', if_exists='replace', index=False)
Код: Выделить всё
ProgrammingError: (pyodbc.ProgrammingError) ('42000', "[42000] [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Incorrect syntax near 'CAST'. (102) (SQLExecDirectW); [42000] [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Statement(s) could not be prepared. (8180)")
[SQL: SELECT cast(com.value as nvarchar(max)) FROM fn_listextendedproperty('MS_Description', 'schema', CAST(? AS NVARCHAR(max)), 'table', CAST(? AS NVARCHAR(max)), NULL, NULL ) as com; ]
[parameters: ('dbo', 'test')]
Подробнее здесь: https://stackoverflow.com/questions/792 ... das-to-sql