Home All Groups Group Topic Archive Search About

are System.Data.SqlClient.SqlConnection thread safe? can many threads share a System.Data.SqlClient.

Author
22 Mar 2006 5:59 AM
Daniel
are System.Data.SqlClient.SqlConnection thread safe? can many threads share
a System.Data.SqlClient.SqlConnection instance without any synchronization?

Author
22 Mar 2006 6:16 AM
Dominick Baier [DevelopMentor]
quoting the docs:

"Any public static (Shared in Visual Basic) members of this type are thread
safe. Any instance members are not guaranteed to be thread safe."

that mean no.

---------------------------------------
Dominick Baier - DevelopMentor
http://www.leastprivilege.com

Show quoteHide quote
> are System.Data.SqlClient.SqlConnection thread safe? can many threads
> share a System.Data.SqlClient.SqlConnection instance without any
> synchronization?
>
Author
22 Mar 2006 8:10 AM
Dominick Baier [DevelopMentor]
maybe you should direct DB/ADO specific question to the corresponding newsgroup.

---------------------------------------
Dominick Baier - DevelopMentor
http://www.leastprivilege.com

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