-
Sorry to ask such a mundane question, but I cannot find this documented anywhere, nor asked by anyone else. Is it safe to use a single Ostensibly, this works. But I'm trying to figure out whether it's working by accident or whether it's a ticking time-bomb. |
Beta Was this translation helpful? Give feedback.
Answered by
roji
Mar 28, 2025
Replies: 1 comment 4 replies
-
Answering my own Q: yes with MARS enabled ( |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
That is wrong, SqlConnection doesn't provide thread-safety, even when MARS is enabled, as per the docs. What MARS provides is the ability to have multiple resultsets open concurrently, but the SqlConnection instance itself must be accessed one thread at a time.