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

bcpy not working with single nvarchar(max) column #25

Open
silviustanimir opened this issue Jun 28, 2022 · 0 comments
Open

bcpy not working with single nvarchar(max) column #25

silviustanimir opened this issue Jun 28, 2022 · 0 comments

Comments

@silviustanimir
Copy link

Hi, I am having troubles uploading data from .csv's with 1 nvarchar column. I tried both creating the table myself as well as letting bcp instantiate its own. The code works just fine for any other .csv with more than 1 column.
I'm using bcpy 0.1.8.

The code snippet looks roughly like this:

data_frame = pd.read_csv(csv_file_path, sep=delimiter, encoding='utf8', dtype=str)                    
df= bcpy.DataFrame(data_frame)
exec_sql = bcpy.SqlTable(sql_connection, table=table_name)
df.to_sql(exec_sql, use_existing_sql_table=True)
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

1 participant