Sharing SqlConnection across functions

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,
i have a SqlConnection object which is located in System.Data.SqlClient.
How can i share it among functions in different souce files without
passing it as a parameter.

regards
-sarab
 
sarab said:
Hi,
i have a SqlConnection object which is located in System.Data.SqlClient.
How can i share it among functions in different souce files without
passing it as a parameter.
sarab

Are the functions members of a common class? Can you set a property of
the class once to the Connection object?

/steveA
 
Back
Top