-
Notifications
You must be signed in to change notification settings - Fork 110
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
MSSQL Server dbWriteTable fails without batch_row = nrow(value) #814
Comments
odbc::dbWriteTable(con, name = "#TEST", value = data.frame(A = 1:2), overwrite = TRUE, immediate = TRUE, batch_rows = 1) EDIT from Simon: drop output into collapsible
Will update as I find out more about the issue. |
Possibly related to #813, both of which I'd hypothesize are an outcome of #774. Hypothesized issue, tested and does not resolveOne thing I observe when I look through [the diff there](https://github.com//pull/774/files#diff-af2d02b6a9ed515dc1d95e050d0a6415f52350bd36dff64245f83f1b7b7413c8R153-R159)... in:Lines 153 to 159 in 559718b
#691 set The changes from #691 had made it to CRAN before 1.5.0, so if |
I can't replicate with Microsoft's driver, but can do so with the Pro driver. |
In the above, 1024 is indeed the value passed for Line 174 in d7b2351
Sounds like some drivers don't support |
It goes through without any errors, of course, you fixed it! Thanks |
my apologies, but regex is not quite working (for some reason) with copy_to() that i am working with. I am still having a similar issue where dates are not working, but datetimes are. can just convert to datetime, but would like it i could avoid that step. the following is my current system.
and below are the sample code i am using to test out different date formats
v1 and v4 work (i.e. the ones with datetimes) the error i get for v2 and v3 is below
again. apologies if this is not the place to report this issue, and the lack of regex (trying to get regex package to work i get this "#> Error in UseMethod("copy_to"): no applicable method for 'copy_to' applied to an object of class "list"" in the regex.... I am trying to save to Oracle19. thank you. |
MSSQL Server dbWriteTable fails without batch_row = nrow(value)
Created on 2024-06-06 with reprex v2.1.0
Database
Session Info
The text was updated successfully, but these errors were encountered: