V
Victor
Hello there,
I have a module in VB.NET (ASP.NET) and on top I declare the
SqlConnection and the SqlDataAdapter.
Like:
Module AccessDB
Dim sqlCmd As New SqlCommand
Dim conAanvraag As New
SqlConnection(ConfigurationSettings.AppSettings("ConnectionString"))
Dim daAanvraag As New SqlDataAdapter
In my Module there are some functions and all those functions use the
sqlDataAdapter. Can i use it in this way OR do i have to include a new
sqldataadapter in every function? The method works but i dont know if
it can cause problems some how.
Thnx in advance,
Victor
I have a module in VB.NET (ASP.NET) and on top I declare the
SqlConnection and the SqlDataAdapter.
Like:
Module AccessDB
Dim sqlCmd As New SqlCommand
Dim conAanvraag As New
SqlConnection(ConfigurationSettings.AppSettings("ConnectionString"))
Dim daAanvraag As New SqlDataAdapter
In my Module there are some functions and all those functions use the
sqlDataAdapter. Can i use it in this way OR do i have to include a new
sqldataadapter in every function? The method works but i dont know if
it can cause problems some how.
Thnx in advance,
Victor