Skip to content

With Pandas DataFrames, DateTimes are giving errors #20

@AdsSengupta

Description

@AdsSengupta

In my dataframe, I have a line df['Time'] = pandas.to_datetime(df['Time'])

but when i run

bdf = bcpy.DataFrame(df)
bdf.to_sql(sql_table, use_existing_sql_table=True)

and I get

SQLState = 22008, NativeError = 0
Error = [Microsoft][ODBC Driver 17 for SQL Server]Invalid date format

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions