I was just wondering why an instance of a connection object is needed when creating a new instance of a command object
but one is not need when used as a parameter to a data adapterCode:objCommand = New sqlClient.SqlCommand(strSQL, New SqlClient.SqlConnection(strConn))
object.
Code:objDA = New SqlClient.SqlDataAdapter(strSql, strConn) objDA.fill(objDS)


Reply With Quote
