-
Notifications
You must be signed in to change notification settings - Fork 107
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
SQL Server fails to reuse temporary tables across sessions #719
Comments
krlmlr
added
bug
an unexpected problem or unintended behavior
mssql
Microsoft SQL Server
labels
Jan 8, 2024
We encountered the same issue today. @krlmlr before I submit a fix using the session id at the end of the pattern, were you working on a fix on your side? Thanks |
Not working on a fix, happy to review a PR. |
@krlmlr beside "the fix works on my pc", let me know if this could be a possible solution. |
Fixed by #724 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Issue Description and Expected Result
On SQL Server,
dbWriteTable()
fails to write a temporary table with the same name from two sessions. The cause is thatdbExistsTable()
shows temporary tables from other sessions. FixingdbExistsTable()
also fixes this problem.On a side note,
dbCreateTable()
needsdbExecute(immediate = TRUE)
.Database
SQL Server
Reproducible Example
Created on 2024-01-08 with reprex v2.0.2
The text was updated successfully, but these errors were encountered: