Connecting Tech Pros Worldwide Help | Site Map

are System.Data.SqlClient.SqlConnection thread safe? can many threads share a System.Data.SqlClient.SqlConnection instance without any synchronization?

Daniel
Guest
 
Posts: n/a
#1: Mar 22 '06
are System.Data.SqlClient.SqlConnection thread safe? can many threads share
a System.Data.SqlClient.SqlConnection instance without any synchronization?


Nick Hounsome
Guest
 
Posts: n/a
#2: Mar 22 '06

re: are System.Data.SqlClient.SqlConnection thread safe? can many threads share a System.Data.SqlClient.SqlConnection instance without any synchronization?



"Daniel" <softwareengineer98037@yahoo.com> wrote in message
news:uKTk5UXTGHA.1728@TK2MSFTNGP11.phx.gbl...[color=blue]
> are System.Data.SqlClient.SqlConnection thread safe? can many threads
> share
> a System.Data.SqlClient.SqlConnection instance without any
> synchronization?[/color]

Nothing can be assumed to be thread-safe unless it says that it is.

The implementation pools the real connections for you (as opposed to the
SqlConnection objects) so you shouldn't try to do it yourself anyway.


Closed Thread