L
Lenin Vyas
hi
I would like to know whats better---
To declare a SQLConnection variable as a Static member of
a Class containing functions to MakeConnection and
CloseConnection, or should I just declare it as a Public
member of the above mentioned class containing Connection
code.
I ask this because I have read in MS documents that-----
"Any public static (Shared in Visual Basic) members of
SqlConnection type are safe for multithreaded operations.
Any instance members are not guaranteed to be thread safe."
Does that mean if SqlConnection object is a non static
member of a class, it will not be able to take advantage
of Connection Pooling?
-lenin
I would like to know whats better---
To declare a SQLConnection variable as a Static member of
a Class containing functions to MakeConnection and
CloseConnection, or should I just declare it as a Public
member of the above mentioned class containing Connection
code.
I ask this because I have read in MS documents that-----
"Any public static (Shared in Visual Basic) members of
SqlConnection type are safe for multithreaded operations.
Any instance members are not guaranteed to be thread safe."
Does that mean if SqlConnection object is a non static
member of a class, it will not be able to take advantage
of Connection Pooling?
-lenin