-
Notifications
You must be signed in to change notification settings - Fork 443
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
Bulkload to Temporary Table Error #1005
Comments
+1, when I try to update an existing table with an additional column, I get the same error. Any ideas how to fix it? Didn't find anything in the documentation 😔 |
@codethyme Can you show your column and row addition code? The error might indicate that the columns and rows being added don't match the order of the temp table columns @mikalai-sokarau Are the rows and columns being added match the table columns? Perhaps a code example could be helpful to look at |
Hi @mikalai-sokarau, I just went over the doc briefly and found that it actually mentioned that the schema for add columns should match the original table's schema. That may actually be the cause of your error? http://tediousjs.github.io/tedious/bulk-load.html#function_addColumn |
Hi, guys, thank you for your answers and link to the doc! |
You can try just using a regular SQL command such as let sqlCommand = 'ALTER TABLE table_name ADD column_name datatype;' Then using the regular tedious API |
Hi @IanChokS, thank you very much, it helped! |
@codethyme Does the above solution work for you also? Closing this for now. |
Having an issue then trying to bulkload to a temporary table:
Temp Table Creation Script:
After executing execBulkLoad getting the below error
Error:
message:"An unknown error has occurred. This is likely because the schema of the BulkLoad does not match the schema of the table you are attempting to insert into."
The text was updated successfully, but these errors were encountered: